کتابخانهای برای مدیریت بهتر استثناءهای صادر شدهی توسط بانکهای اطلاعاتی در 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.