DbContextConfigurator Class
Namespace: Nucleus.Data.EntityFramework
Assembly: Nucleus.Data.EntityFramework.dll
This is the non-generic form of IDbContextConfigurator, used by
DbContext.
Properties
DatabaseConnectionOption
Property
Gets the database connection option for this DbContextConfigurator.
ExceptionMessageTokens
Property
Gets the tokens and values which were matched in the most recent call to ParseException.
Fields
DB_MESSAGES
Field
Dictionary of constraint names/messages for ParseException method.
Methods
Configure
(DbContextOptionsBuilder) Method
Configure (DbContextOptionsBuilder options)
Configure entity-framework with the specified options.
ParseException
(DbUpdateException) Method
ParseException (Microsoft.EntityFrameworkCore.DbUpdateException)
Parse a database exception and if recognized, throw an exception with a more friendly message.
ParseException
(Exception,String,String) Method
ParseException (Exception exception, String pattern, String message)
Match an original exception message to a pattern and generate an improved error message.