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

Поділитися
Вставка
  • Опубліковано 19 вер 2024

КОМЕНТАРІ • 48

  • @olegpogorelov5223
    @olegpogorelov5223 7 місяців тому

    Thank you very much! Finally, thanks to your video tutorial, I understood this topic!)

    • @dexcodelab
      @dexcodelab  7 місяців тому

      You're welcome. Glad it helped!

  • @aliyousef4755
    @aliyousef4755 Місяць тому

    very organized and clear, Thank you🙏

  • @pamodpeiris154
    @pamodpeiris154 5 місяців тому

    Very good explanation. Short and clear.

  • @namessis
    @namessis 4 місяці тому

    Amazing thanks for your labor and solution. !!! We are excitedly waiting for content.

    • @dexcodelab
      @dexcodelab  4 місяці тому

      Thankyou for liking the content, will try to upload more helpful content in future

  • @CyberHelp1
    @CyberHelp1 3 місяці тому

    Thanku bro this solution is best one

  • @bipinlal1724
    @bipinlal1724 7 місяців тому

    Very good video, really understood. data can be saved very 👍👍👍👍

  • @ekremozafsar2875
    @ekremozafsar2875 10 місяців тому +1

    Thank u man keep going!

  • @myti1617
    @myti1617 6 місяців тому +1

    that was perfect

  • @juliuszhu9123
    @juliuszhu9123 4 місяці тому

    nice job! thanks for doing this.

  • @raziuddinmohd
    @raziuddinmohd 11 місяців тому

    Nice explanation..very useful

  • @hieuang79
    @hieuang79 5 місяців тому

    Thank you very much!

  • @hoangheo2505
    @hoangheo2505 10 місяців тому

    thanks you for tutorial ^^

    • @dexcodelab
      @dexcodelab  10 місяців тому

      You're welcome 😊

  • @MithileshKumar-c1g
    @MithileshKumar-c1g 9 місяців тому +1

    Please make video for bulk insert from excel to sql server like 1m row insert at one click

    • @dexcodelab
      @dexcodelab  6 місяців тому

      That sounds good! I'll keep it in mind for future content.

  • @ShanteshManure
    @ShanteshManure 28 днів тому

    FormatException: Input string was not in a correct format.
    mainExcelFile.PoNo = Convert.ToInt32(reader.GetValue(1).ToString());

    • @dexcodelab
      @dexcodelab  28 днів тому

      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.

  • @randnas
    @randnas 4 місяці тому

    How can I import data with more than one file to more than one table??

    • @dexcodelab
      @dexcodelab  4 місяці тому +1

      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.

  • @bruhmanbruhmanzz
    @bruhmanbruhmanzz 11 місяців тому

    Can you do a video about export excel file from db?

    • @dexcodelab
      @dexcodelab  11 місяців тому +1

      I don't promise but i will try

  • @sunnyafran415
    @sunnyafran415 10 місяців тому

    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  10 місяців тому

      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?

  • @tharun4939
    @tharun4939 11 місяців тому

    Is it with the validation too

    • @dexcodelab
      @dexcodelab  11 місяців тому

      Validation of?

    • @tharun4939
      @tharun4939 11 місяців тому

      @@dexcodelab SQL data types

    • @dexcodelab
      @dexcodelab  11 місяців тому

      Can you please share the exact error?

  • @Sameyo_Rei
    @Sameyo_Rei 8 місяців тому

    how to change it to Net core web APi

    • @dexcodelab
      @dexcodelab  7 місяців тому

      Sure, i will try to make a video for this

    • @Sameyo_Rei
      @Sameyo_Rei 7 місяців тому

      @@dexcodelab thank you

    • @dexcodelab
      @dexcodelab  6 місяців тому

      welcome sir, New video with API is uploaded

  • @tharun4939
    @tharun4939 11 місяців тому

    I am getting an error can you please help me with that error 🙏

    • @dexcodelab
      @dexcodelab  11 місяців тому

      Where are you getting the error?

    • @tharun4939
      @tharun4939 11 місяців тому

      @@dexcodelab during the database app user creation

    • @dexcodelab
      @dexcodelab  11 місяців тому

      Can you please share the exact error?