Nucleus .Net Core CMS

DataProvider Class

Namespace: Nucleus.Data.Common
Assembly: Nucleus.Data.Common.dll
Base class used by database providers.

Remarks

Nucleus database provider classes inherit this class. Modules generally inherit Nucleus.Data.EntityFramework.DataProvider instead.

Methods

CheckConnection

CheckConnection ()
Check the database connection.
Remarks
This method will throw a database provider-specific exception on error.

GetDatabaseInformation (DatabaseOptions,String) Method

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

GetDatabaseKey ()
Get the configuration key for the database.

Dispose

Dispose ()
Dispose of resources.