DataProvider Class
Namespace: Nucleus.Data.EntityFramework
Assembly: Nucleus.Data.EntityFramework.dll
Base class used by entity-framework data providers.
Constructor
DataProvider
(DbContext, ILogger<DataProvider>) Constructor
DataProvider (DbContext context, ILogger<DataProvider> logger)
Constructor.
Properties
Context
Property
Entity framework DbContext.
Logger
Property
Logger used to log messages.
Methods
CheckConnection
CheckConnection ()
Attempts a connection to the database. Throws a database provider specific exception if not successful.
GetDatabaseKey
GetDatabaseKey ()
Get the key for the database which corresponds to a section in the database configuration settings file.