How to Import Data from Excel File to Database Table Using ASP.NET Core and Entity Framework

  Рет қаралды 12,651

Dex Code Lab

Dex Code Lab

Күн бұрын

Пікірлер: 56
@olegpogorelov5223
@olegpogorelov5223 10 ай бұрын
Thank you very much! Finally, thanks to your video tutorial, I understood this topic!)
@dexcodelab
@dexcodelab 10 ай бұрын
You're welcome. Glad it helped!
@vuThien263
@vuThien263 Ай бұрын
Tks bro ur video step by step is very easy to understand
@dexcodelab
@dexcodelab Ай бұрын
I'm glad it helped you
@msdhonicoolcaptain
@msdhonicoolcaptain Ай бұрын
Thank you Salman, this video is really helpful. I have subscribed your channel.
@dexcodelab
@dexcodelab Ай бұрын
You're welcome sir, I'll try to make more helpful videos, and thats for liking and subscribing
@ekremozafsar2875
@ekremozafsar2875 Жыл бұрын
Thank u man keep going!
@dexcodelab
@dexcodelab Жыл бұрын
You're welcome
@sangeethalakshmanathilagar9723
@sangeethalakshmanathilagar9723 Ай бұрын
Hi Thank you so much your video is very helpful for me as a beginner in MVC . I have a doubt I want the database to read the null columns and rows also . I tried different codes it is not working and also I want the reader to read from a particular row . For example to start to read the excel file from row 10. Thank you.
@dexcodelab
@dexcodelab Ай бұрын
The nuget package used in the video has 2 methods to read excel. If you want to read value of row 10 then go to 17:50 of the video. At 17:50 you can see the sample code by the developers, you have to use method 2. That will copy all values of excel in datatable and feom datatable you can directly access the cell. For you first query i need more information. There should be no issue in reading null values. If you're getting some error please share that as well.
@pamodpeiris154
@pamodpeiris154 8 ай бұрын
Very good explanation. Short and clear.
@dexcodelab
@dexcodelab 8 ай бұрын
Glad you liked it
@aliyousef4755
@aliyousef4755 4 ай бұрын
very organized and clear, Thank you🙏
@dexcodelab
@dexcodelab 4 ай бұрын
Glad it was helpful!
@namessis
@namessis 7 ай бұрын
Amazing thanks for your labor and solution. !!! We are excitedly waiting for content.
@dexcodelab
@dexcodelab 7 ай бұрын
Thankyou for liking the content, will try to upload more helpful content in future
@myti1617
@myti1617 9 ай бұрын
that was perfect
@dexcodelab
@dexcodelab 9 ай бұрын
Thankyou sir
@juliuszhu9123
@juliuszhu9123 8 ай бұрын
nice job! thanks for doing this.
@dexcodelab
@dexcodelab 8 ай бұрын
My pleasure!
@bipinlal1724
@bipinlal1724 10 ай бұрын
Very good video, really understood. data can be saved very 👍👍👍👍
@dexcodelab
@dexcodelab 10 ай бұрын
Thank you sir
@raziuddinmohd
@raziuddinmohd Жыл бұрын
Nice explanation..very useful
@dexcodelab
@dexcodelab Жыл бұрын
Thank you sir
@thecyberhelp1
@thecyberhelp1 7 ай бұрын
Thanku bro this solution is best one
@dexcodelab
@dexcodelab 7 ай бұрын
You're welcome
@hoangheo2505
@hoangheo2505 Жыл бұрын
thanks you for tutorial ^^
@dexcodelab
@dexcodelab Жыл бұрын
You're welcome 😊
@hieuang79
@hieuang79 8 ай бұрын
Thank you very much!
@dexcodelab
@dexcodelab 8 ай бұрын
You're welcome sir
@DanishFarhan-wg3xz
@DanishFarhan-wg3xz 11 күн бұрын
can i use this for core 8?
@dexcodelab
@dexcodelab 10 күн бұрын
Yes you can.
@MithileshKumar-c1g
@MithileshKumar-c1g Жыл бұрын
Please make video for bulk insert from excel to sql server like 1m row insert at one click
@dexcodelab
@dexcodelab 9 ай бұрын
That sounds good! I'll keep it in mind for future content.
@tharun4939
@tharun4939 Жыл бұрын
Is it with the validation too
@dexcodelab
@dexcodelab Жыл бұрын
Validation of?
@tharun4939
@tharun4939 Жыл бұрын
@@dexcodelab SQL data types
@dexcodelab
@dexcodelab Жыл бұрын
Can you please share the exact error?
@randnas
@randnas 7 ай бұрын
How can I import data with more than one file to more than one table??
@dexcodelab
@dexcodelab 7 ай бұрын
First make the html input tag to select multiple files. Second convert IFormFile to List files. Then loop through files and perform import operation on each file.
@ShanteshManure
@ShanteshManure 4 ай бұрын
FormatException: Input string was not in a correct format. mainExcelFile.PoNo = Convert.ToInt32(reader.GetValue(1).ToString());
@dexcodelab
@dexcodelab 4 ай бұрын
I think the cell value is not numeric or its either null that why conversion has failed. Create a try catch block to skip the bad row or use int.TryParse method. Incase of bad row you can also put a hardcoded default value like 0 or make a list of all bad rows and at the end you can display data that is not inserted and has errors.
@bruhmanbruhmanzz
@bruhmanbruhmanzz Жыл бұрын
Can you do a video about export excel file from db?
@dexcodelab
@dexcodelab Жыл бұрын
I don't promise but i will try
@Sameyo_Rei
@Sameyo_Rei 11 ай бұрын
how to change it to Net core web APi
@dexcodelab
@dexcodelab 11 ай бұрын
Sure, i will try to make a video for this
@Sameyo_Rei
@Sameyo_Rei 11 ай бұрын
@@dexcodelab thank you
@dexcodelab
@dexcodelab 9 ай бұрын
welcome sir, New video with API is uploaded
@tharun4939
@tharun4939 Жыл бұрын
I am getting an error can you please help me with that error 🙏
@dexcodelab
@dexcodelab Жыл бұрын
Where are you getting the error?
@tharun4939
@tharun4939 Жыл бұрын
@@dexcodelab during the database app user creation
@dexcodelab
@dexcodelab Жыл бұрын
Can you please share the exact error?
@sunnyafran415
@sunnyafran415 Жыл бұрын
I can't add import excel file to datagridview then save to database at the same project, you have uploaded two different tutorials ,please give a tutorial import excel file display DataGridView and save to database in same project without migration, please it's urgent.
@dexcodelab
@dexcodelab Жыл бұрын
Sorry, i have a busy schedule these days, once i will find time i will do it. Do you want it done with db first approach?
Uploading, Reading and Displaying Excel File using ASP .Net Core
13:52
Change Layout of ASP Net Core MVC Web Application
13:27
Dex Code Lab
Рет қаралды 1,1 М.
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.
ASP.NET Core Crash Course - C# App in One Hour
1:00:44
freeCodeCamp.org
Рет қаралды 1,6 МЛН
Brutally honest advice for new .NET Web Developers
7:19
Ed Andersen
Рет қаралды 289 М.
Building a Dapper CRUD API From Scratch In .NET 7 - For Beginners
22:50
Milan Jovanović
Рет қаралды 30 М.
Integrate Tailwind CSS with .NET 8 MVC: Step-by-Step Guide
17:59
ASP.NET Core Full Course For Beginners
3:43:18
Julio Casal
Рет қаралды 504 М.
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН