Category - Core
Results 21 - 25 of 62
18 Jun 2020 18 Jun 2020 0 Comments  2561 Views
Here Mudassar Ahmed Khan has explained with an example, how to import (insert) Excel file data into Database using SqlBulkCopy in ASP.Net Core MVC.

The uploaded Excel file data will be read using OLEDB library and the read data will be inserted into SQL Server database using SqlBulkCopy.

SqlBulkCopy class as the name suggests does bulk insert from one source to another and hence all rows from the Excel sheet can be easily read and inserted using the SqlBulkCopy class.
15 Jun 2020 15 Jun 2020 0 Comments  2028 Views
ASP.Net  MVC  Core
Here Mudassar Ahmed Khan has explained with an example, how to get wwwroot Folder (Directory) path in ASP.Net Core.

The path of the wwwroot folder is accessed using the interfaces IHostingEnvironment (.Net Core 2.0) and IWebHostEnvironment (.Net Core 3.0) in ASP.Net Core.
15 Jun 2020 15 Jun 2020 0 Comments  698 Views
ASP.Net  MVC  Core
Here Mudassar Ahmed Khan has explained with an example, how to get Application Base (Root) path in ASP.Net Core.

The Application Base (Root) path is available in the ContentRootPath property of the interfaces IHostingEnvironment (.Net Core 2.0) and IWebHostEnvironment (.Net Core 3.0) in ASP.Net Core.
15 Jun 2020 15 Jun 2020 0 Comments  1078 Views
ASP.Net  MVC  Core
Here Mudassar Ahmed Khan has explained with an example, how to get WebRootPath and ContentRootPath in ASP.Net Core.

The WebRootPath and ContentRootPath are accessed using the interfaces IHostingEnvironment (.Net Core 2.0) and IWebHostEnvironment (.Net Core 3.0) in ASP.Net Core.
15 Jun 2020 15 Jun 2020 0 Comments  708 Views
Here Mudassar Ahmed Khan has explained with an example, how to create a Folder (Directory) inside wwwroot Folder in ASP.Net Core.

The path of the wwwroot folder is accessed using the IHostingEnvironment interface and then using the Directory class a Directory (Folder) is created inside the wwwroot folder in ASP.Net Core.
Results 21 - 25 of 62