کتابخانهای برای مدیریت بهتر استثناءهای صادر شدهی توسط بانکهای اطلاعاتی در EF Core
نویسنده: وحید نصیری
تاریخ: ۱۳۹۷/۰۹/۲۱ ۸:۳۴
آدرس: www.dntips.ir
EntityFramework.Exceptions simplifies this by handling all the
database specific details and throwing different exceptions. All you
have
to do is inherit your DbContext from ExceptionProcessorContext and handle the exception(s) such as UniqueConstraintException,
CannotInsertNullException, MaxLengthExceededException, NumericOverflowException you need.