Database transactions are very important when it comes to the consistency of our apps. That's why in a setup with MediatR handlers we very often have the handler method cluttered with database transaction related code. But what if we use MediatR pipeline behaviors to wrap handlers into database transactions?
#dotnet #csharp #aspnetcore #mediatr
Join this channel to get source code access and other perks:
/ @codewrinkles
Content
1. Intro: 00:00
2. Cluttered MediatR handlers: 00:10
3. Db transactions in MediatR pipelines: 01:58
Also follow me here (especially if you are a self taught developer):
✅My other channel: / @danpatrascutech
✅Facebook: / danpatrascutech
✅Instagram: / danpatrascutech
✅TikTok: / danpatrascutech
My setup:
Camera - Canon EOS M50 Mark II: amzn.to/3SJxS4d
Lav mic - Rode Lavalier GO Professional: amzn.to/3mmZS1B
Condenser mic - Shure SM7B: amzn.to/3JaqjQN
Audio console - Rodecaster PRO II: amzn.to/3KTVMIg
Laptop - Dell Latitude: amzn.to/3KV4SEW
Monitors - Benq 27 inch: amzn.to/3JbM6aU
Lights - 2x Godox SL-60W: amzn.to/3KV3qCj
Негізгі бет Ғылым және технология Using MediatR Pipeline Behaviors For Database Transactions
Пікірлер: 17