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

Поделиться
HTML-код
  • Опубликовано: 28 авг 2024

Комментарии • 48

  • @olegpogorelov5223
    @olegpogorelov5223 6 месяцев назад

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

    • @dexcodelab
      @dexcodelab  6 месяцев назад

      You're welcome. Glad it helped!

  • @aliyousef4755
    @aliyousef4755 12 дней назад

    very organized and clear, Thank you🙏

  • @gyansinghsiddhu
    @gyansinghsiddhu 2 месяца назад

    Thanku bro this solution is best one

  • @pamodpeiris154
    @pamodpeiris154 4 месяца назад

    Very good explanation. Short and clear.

  • @namessis
    @namessis 3 месяца назад

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

    • @dexcodelab
      @dexcodelab  3 месяца назад

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

  • @bipinlal1724
    @bipinlal1724 6 месяцев назад

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

  • @myti1617
    @myti1617 5 месяцев назад +1

    that was perfect

  • @ekremozafsar2875
    @ekremozafsar2875 9 месяцев назад +1

    Thank u man keep going!

  • @juliuszhu9123
    @juliuszhu9123 4 месяца назад

    nice job! thanks for doing this.

  • @hieuang79
    @hieuang79 4 месяца назад

    Thank you very much!

  • @raziuddinmohd
    @raziuddinmohd 10 месяцев назад

    Nice explanation..very useful

  • @user-gm9kv9cw8j
    @user-gm9kv9cw8j 9 месяцев назад +1

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

    • @dexcodelab
      @dexcodelab  5 месяцев назад

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

  • @ShanteshManure
    @ShanteshManure 6 дней назад

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

    • @dexcodelab
      @dexcodelab  6 дней назад

      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.

  • @hoangheo2505
    @hoangheo2505 9 месяцев назад

    thanks you for tutorial ^^

    • @dexcodelab
      @dexcodelab  9 месяцев назад

      You're welcome 😊

  • @randnas
    @randnas 3 месяца назад

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

    • @dexcodelab
      @dexcodelab  3 месяца назад +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.

  • @sunnyafran415
    @sunnyafran415 9 месяцев назад

    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  9 месяцев назад

      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?

  • @bruhmanbruhmanzz
    @bruhmanbruhmanzz 10 месяцев назад

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

    • @dexcodelab
      @dexcodelab  10 месяцев назад +1

      I don't promise but i will try

  • @tharun4939
    @tharun4939 10 месяцев назад

    Is it with the validation too

    • @dexcodelab
      @dexcodelab  10 месяцев назад

      Validation of?

    • @tharun4939
      @tharun4939 10 месяцев назад

      @@dexcodelab SQL data types

    • @dexcodelab
      @dexcodelab  10 месяцев назад

      Can you please share the exact error?

  • @tharun4939
    @tharun4939 10 месяцев назад

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

    • @dexcodelab
      @dexcodelab  10 месяцев назад

      Where are you getting the error?

    • @tharun4939
      @tharun4939 10 месяцев назад

      @@dexcodelab during the database app user creation

    • @dexcodelab
      @dexcodelab  10 месяцев назад

      Can you please share the exact error?

  • @Sameyo_Rei
    @Sameyo_Rei 7 месяцев назад

    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  5 месяцев назад

      welcome sir, New video with API is uploaded