Nucleus .Net Core CMS

DataProvider Class

Namespace: Nucleus.Data.Common
Assembly: Nucleus.Data.Common.dll
Base class used by database providers.
Nucleus database provider classes inherit this class. Modules generally inherit Nucleus.Data.EntityFramework.DataProvider instead.
CheckConnection ()
Check the database connection.
Remarks
This method will throw a database provider-specific exception on error.
Dispose ()
Dispose of resources.
GetDatabaseInformation (DatabaseOptions databaseOptions, String schemaName)
Get database diagnostics information for the specified schema.
Parameters
Name Type
databaseOptions Nucleus.Abstractions.Models.Configuration.DatabaseOptions
schemaName String
Remarks
The logic to check whether a specific database provider is the right one to use for the specified schema name is implemented within each IDatabaseProvider implementation.
GetDatabaseKey ()
Get the configuration key for the database.