Maintainable Code: EF Core Transactions Tips

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ส.ค. 2024
  • Analysing different ways to write entity framework core transactions in .NET and ASP.NET Core application with pros and cons of each approach.
    Support my Work 🤝 / raw_coding
    Buy my Courses 📚 learning.raw-c...
    Buy my Merch 🛒 shop.raw-codin...
    Join the Community 💬 / discord
    Tweet Tweet 📣 / anton_t0shik
    Tune in LIVE! 🎥 / raw_coding
    #aspnetcore #coding #efcore

ความคิดเห็น • 17

  • @DrCox-xx8tu
    @DrCox-xx8tu หลายเดือนก่อน +17

    I'm still waiting on an opener like: "Welcome back boys and girls, my name is Jesus and in this video I want to tell you about our lord and savior"
    Looking forward to the vid, but even more so to streams again, it's been ages, man.

  • @richardcox7939
    @richardcox7939 หลายเดือนก่อน +1

    The transaction object you get from BeginTransactionAsync() will rollback itself on Dispose (or DisposeAsync) if it has not been committed: the whole try/catch and rollback call is just repeating what the library already implements.

  • @pagorbunov
    @pagorbunov หลายเดือนก่อน +3

    We tried all of these approaches but ended up with the first one as that one is the most explicit with no runtime magic etc.

  • @allinvanguard
    @allinvanguard หลายเดือนก่อน

    Not sure if I end up using this (Because usually I like being super explicit for transactions), but I love the idea! I never thought about something like this, really creative.

  • @Fenrings
    @Fenrings หลายเดือนก่อน +3

    what you are presenting is very informative, but the amount of jumping between the files, scrolling, constantly changing highlighted text, mixing examples - makes it very hard to follow

    • @RawCoding
      @RawCoding  หลายเดือนก่อน +1

      thank you for the feedback I'll try to do it less

  • @aqz5905
    @aqz5905 หลายเดือนก่อน

    What’s new in Frontend world ? Any new changes Vue or react ?

  • @tedchirvasiu
    @tedchirvasiu หลายเดือนก่อน +8

    I like how he's saying "boys and girls" just in case one of the two female subscribers happen to watch this video

    • @asdfgha
      @asdfgha 13 วันที่ผ่านมา +1

      XD yeah. Although I'm some of his maybe 2 female subs, I wouldn't even care, if he'd say boys or guys. Don't understand this political correctness, like his videos though. He made me understand async.

  • @justaslts
    @justaslts หลายเดือนก่อน

    How about IDisposable instance with BeginTransaction() Commit() and Rollback() methods?

  • @sebastianwhiffen
    @sebastianwhiffen หลายเดือนก่อน

    Watching your channel develop is equally as entertaining as watching your beard develop

    • @asdfgha
      @asdfgha 13 วันที่ผ่านมา

      Shocking in the latter case. Shocking... Imo he looks better without that beard ö.Ö

  • @matiascasag
    @matiascasag หลายเดือนก่อน

    Wilsoooonnnnnn!!!

  • @sergeyermolenko5938
    @sergeyermolenko5938 หลายเดือนก่อน

    A+ *******

  • @meetingattender8132
    @meetingattender8132 หลายเดือนก่อน +1

    wer the dmn code bruh

    • @RawCoding
      @RawCoding  หลายเดือนก่อน +1

      patreon github