Entity Framework - Part 10 - Updating Data

Поделиться
HTML-код
  • Опубликовано: 10 июл 2024
  • In our final episode of the series we select a task and update some (or all) attributes back to the db.
    For the full written tutorial go to www.binarythistle.com
    Music courtesy of Bensound @ www.bensound.com
  • НаукаНаука

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

  • @prometheus2625
    @prometheus2625 Месяц назад

    I really like the idea of giving a very basic example and explaining it as clear as possible. Enjoyed and learned very much. Thank you.

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

    I know this series is more than five years old, but I am being pushed to learn EF. Thank you so much for your videos and simple explanations.

  • @janoytechwizz3874
    @janoytechwizz3874 2 года назад

    I have been scouring youtube to grasp this concept and to see the code in action. Thank you. One Tip Use Comments above code blocks its really helpful for newbies.

  • @CodingSquid
    @CodingSquid 5 лет назад +3

    Your .Net Core MVC REST API video brought me to your channel. Looking forward to watching your DevOps lesson soon. Thank you again.

    • @binarythistle
      @binarythistle  5 лет назад

      Hi Richard - thanks for taking the time to feedback. I hope to be producing more content soon that I hope you find useful too. Cheers, Les

  • @jayrcodes91
    @jayrcodes91 Год назад

    Hey Les, thank you for the tutorial series, I've learned a lot. Thank you.

  • @dashachernobai7895
    @dashachernobai7895 Год назад

    Thank you very much for the tutorial! To be honest, it is rare to find a programmer who explains the code well, and you are definitely in their top, thank you very much, great project, not boring and detailed explanation. Thanks to you, my teacher at the university will not suffer reading the code. With great wishes from Ukraine, good luck, and may you have more subscribers, you deserve it.

  • @stevenstone307
    @stevenstone307 3 года назад +2

    Hey Les, thank you so much for this series! I needed to get up to scratch with EF for work and your series have given me a load of confidence getting into it. Thank you!

  • @vladeb1104
    @vladeb1104 3 года назад

    The most challenging part of the tutorial was the workaround of form elements. I'm glad I've watched it, as it gives me a decent start to attach EF functionality to the web apps. Thank You, Les!

  • @HyborianDemonKnight
    @HyborianDemonKnight Год назад

    Great tutorial by the way! Very easy to follow the workflow!

  • @samgod9599
    @samgod9599 4 года назад +1

    Excellent Series of Videos. Thanks

  • @schudasama
    @schudasama 4 года назад

    You have a very Unique way of teaching. I appreciate all your efforts. You know how to present and what things to cover giving a global knowledge about the subject! Many Thanks.

    • @binarythistle
      @binarythistle  4 года назад

      Thanks Sanjay - I hope you find the content useful!

  • @AthelstanEngland
    @AthelstanEngland Год назад

    Excellent playlist. I liked the bite sized episodes.

  • @toddchristensen7773
    @toddchristensen7773 3 года назад +1

    I found this whole tutorial quite interesting and useful. Thanks for taking the time to create it! I look forward to viewing some of your others.

  • @umarrauf9331
    @umarrauf9331 3 года назад

    Just finished the series and loved it. I wanted a run down of what EF is and does and now I know. Thanks man

  • @bakiwebdev
    @bakiwebdev 3 года назад

    just want to say, thank you, and keep going

  • @iandavies1524
    @iandavies1524 3 года назад

    Absolute belter!

  • @rehanahmad2689
    @rehanahmad2689 3 года назад

    Hi Les, Great video series. Subscribed and eager to view some more from your playlists. Keep up the great work!

  • @peterdoyle1994
    @peterdoyle1994 3 года назад

    Very professional tutorial. Thanks.

  • @18ashwin
    @18ashwin 2 года назад

    Thanks a lot for this video series...I completed it at one go and learnt so many things.

  • @agsamjad1khan84
    @agsamjad1khan84 4 года назад

    Very Nice Explanation thanks Jack

  • @mariadebroy6118
    @mariadebroy6118 3 года назад

    Thank you for the amazing tutorial! Subscribed.

  • @JonathanDewetfunlifegod
    @JonathanDewetfunlifegod 3 года назад

    This really helped me with an assignment I am working on. Thanks for making this.

  • @fernando-loula
    @fernando-loula 2 года назад

    Real cool stuff, helped me a lot. I would suggest you try to abstract out the nitty gritty stuff on user interface, I personally know nothing about forms and UI in general, and some of the stuff that was there got in my way from time to time. Loved your channel, cheers.

  • @virekmaharaj5665
    @virekmaharaj5665 6 лет назад

    Your tutorials are really good man , nice explanations and easy to understand. Keep it up!!!

  • @julivanespi
    @julivanespi 3 года назад

    This was a great playlist!

  • @guy1407
    @guy1407 2 года назад

    final thought :)
    You should add the ability to move up/down in selected row and show the data on the task GroupBox (AKA Frame)

  • @otaviodioscanio3868
    @otaviodioscanio3868 3 года назад

    Thank you a lot! From Brazil.

  • @matthiaskarageorgiou3784
    @matthiaskarageorgiou3784 5 лет назад

    Loved the series , im pretty new to Entity , SQL and LINQ and everything in that direction! It really helped me understand how things work a lot , I#m looking forward to more tutorials of you and I really like that you stop and explain what is happening with simple words cause I guess most of us here don't have a lot of experience and come here looking for excactly that ! And that accent one more reason! Thank you !

    • @binarythistle
      @binarythistle  5 лет назад +1

      Thanks Matthias! I try to make the tutorials I would like to watch! I find even if you have experience, learning something new can still be tough. Anyway glad you enjoyed the series. Cheers Les

  • @axmart1993
    @axmart1993 4 года назад +1

    Thank you for this tutorial it seemd short but it had a lot of usefull information! I will make sure when im there i will buy your new book :) Cheers mate!

  • @rizgarkh
    @rizgarkh 5 лет назад +1

    Very good tutorial, Very good explanation and easy to follow. THANK YOU

  • @rhondaandmartyyoungkins7034
    @rhondaandmartyyoungkins7034 3 года назад

    Thanks Les, nice introduction to EF

  • @davidconley9852
    @davidconley9852 6 лет назад

    Thanks for a great tutorial! I'd like to suggest a series on the database first approach as I am constrained to working with existing databases and find your explanations very helpful.

    • @binarythistle
      @binarythistle  6 лет назад

      Hi David. thanks for the feedback. Yes I get it! Most of the stuff I've had to work on I've had to start with the db... I'll put your suggestion on the back log of ideas for my next series! Cheers, Les

    • @johncantrell7096
      @johncantrell7096 6 лет назад

      I'd also love to see more relational stuff. I have a very SQL heavy program with lots of custom Table Adapters and it get's very messy. I do not know how it would be possible to convert some of these Table Adapters to entity framework when it involves sql query logic (such as finding rows based on a variable).

  • @marekczarek5987
    @marekczarek5987 3 года назад

    Thank you!

  • @andresjimenez3140
    @andresjimenez3140 3 года назад

    This was an amazing tutorial ! Great Job !
    I'd like to know what would recommend, to use EF Code First or Database First ? Pros and cons ?

  • @dampuawang2897
    @dampuawang2897 4 года назад

    Thank you very much

  • @beloCK750
    @beloCK750 Год назад

    Thanks Les

  • @HaiderAlDelfi
    @HaiderAlDelfi 4 года назад

    Thank you Les, that was a very informative playlist.
    One quick question in relation to EF in a production environment. Assume you have deployed an application using code first and months down the line you need to make significant design changes following customer request (For example: You have to delete a class, change relationships, modify properties). In the scenario of deleting a class, EF migration would issue a command to drop the table. Is there a way to preserve data in the database and avoid data loss?
    I know we can manually edit the migration code but is there a better way of doing this to prevent potential data loss. In other words, is there a recommended pattern when using EF in a production environment?
    Thank you
    H.

  • @binalgohil8791
    @binalgohil8791 4 года назад +1

    Very good explanation... Thank you very much😊

  • @thethomasproject
    @thethomasproject 6 лет назад

    I wanted to say that I've really enjoyed this series! If you were thinking of doing a deeper dive into entity, I'm there! Actually love to ask, what references would you recommend at this point to really get deep into entity?

    • @binarythistle
      @binarythistle  6 лет назад

      Hi Frank - really glad you enjoyed the series! Probably the most comprehensive text I've found on the Entity Framework was Programming Entity Framework by Julia Lerman - published by O'Reilly. Other than that Google is your best friend!

    • @thethomasproject
      @thethomasproject 6 лет назад

      Really. I picked up that book but hesitant to read through it thinking it was outdated. I'll start pouring through it.

    • @binarythistle
      @binarythistle  6 лет назад

      Hey Frank - yes I get where you're coming from and to be honest I've only really skimmed it myself. If you already have access to it - great , otherwise I really just find stackoverflow, msdn and other youtube vidoes are the best source of info. It's also usually more upto date!

  • @omarwasfi
    @omarwasfi 5 лет назад +1

    Thanks

  • @FloetschMaster
    @FloetschMaster 4 года назад

    Well done as everytime! one tghought of me... we make a "var t = tmContext.Tasks.Find((int)dataGridView.SelectedCells[0].Value);" when we click save. so if it happens that the user unfortunately select a different Dataset in the grid it would notg update the correct Dataset in the database... how can i perevent from that?? i have tried to make that "var t = tmContext.Tasks.Find((int)dataGridView.SelectedCells[0].Value);" as we click on update but its in a if-statement so i cannot reuse the "t" in the "else if-statement" any idea?

  • @mattmorgan6807
    @mattmorgan6807 4 года назад +1

    I really enjoyed learning through this video series! My only suggestion is to increase the IDE font size a hair while you are recording.
    Cheers.

    • @binarythistle
      @binarythistle  4 года назад +2

      Hey Matt - yes totally agree. My earlier videos were all done at 1920 x 1080, which can be difficult to read even on large screens never mind mobile! I'm experimenting with a few techniques now to improve the readability: lower resolutions, "zooming in" in the edit etc...
      Great feedback I appreciate it, Cheers, Les

  • @shabeerna2002
    @shabeerna2002 2 года назад

    Hi, Can you please show a demo on how to update nested entities.

  • @mdzikrullah9575
    @mdzikrullah9575 2 года назад

    Hey I need help. Im getting a System.NullReferenceException when Im asigning task's status
    newTask.StatusId = (cboStatus.SelectedItem as Model.Status).Id; here.
    Anyone please help me. Thanks

  • @mrt7948
    @mrt7948 3 года назад

    Pretty nice. Can we go to the next level please? one to many relationship, editing on the datagram.

  • @allanhouston22
    @allanhouston22 6 лет назад

    So you ran select and update, not just attaching the updated model and then run update only...

  • @HitmonCZ
    @HitmonCZ 5 лет назад

    Really great tutorial series, helped me alot, but I think it should've been demonstrated in WPF, instead of WinForms.

    • @binarythistle
      @binarythistle  5 лет назад +1

      Good feedback thanks - a few people have said that! I choose WinForms through habit really, no other reason ;) Will look ay WPF next time.

  • @HyborianDemonKnight
    @HyborianDemonKnight Год назад

    Was getting a System ArgumentOutOfRangeException after pressing Update button without having selecting an Item in the DataGrid and this fixed it:
    ruclips.net/video/W8T1MAV3dBE/видео.html