عنوان:

‫DbContext را در داخل Using وهله سازی نکنید


نویسنده: مجید شهاب فر
تاریخ: ۱۳۹۹/۰۹/۲۸ ۱۴:۳۸
آدرس: www.dntips.ir

EF and EF Core DbContext types implement IDisposable. As such, best practice programming suggests that you should wrap them in a using() block (or new C# 8 using statement). Unfortunately, doing this, at least in web apps, is generally a bad idea. 



مشاهده مطلب اصلی