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
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.
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.
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.
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.
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
thank you for the feedback I'll try to do it less
What’s new in Frontend world ? Any new changes Vue or react ?
I like how he's saying "boys and girls" just in case one of the two female subscribers happen to watch this video
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.
How about IDisposable instance with BeginTransaction() Commit() and Rollback() methods?
Watching your channel develop is equally as entertaining as watching your beard develop
Shocking in the latter case. Shocking... Imo he looks better without that beard ö.Ö
Wilsoooonnnnnn!!!
A+ *******
wer the dmn code bruh
patreon github