Nucleus .Net Core CMS

DataProviderExtensions Class

Namespace: Nucleus.Data.EntityFramework
Assembly: Nucleus.Data.EntityFramework.dll
Extensions for entity-framework data provider dependency configuration.

Methods

AddDataProvider<TDataProviderInterface, TDataProvider, TDbContext> (IServiceCollection,IConfiguration) Method

AddDataProvider<TDataProviderInterface, TDataProvider, TDbContext> (IServiceCollection services, IConfiguration configuration)
Add the specified data provider and DbContext to the services collection.
Type Parameters
TDataProviderInterface Interface used by modules to access the data provider. This type is used as a key to the dependency injection service collection.
TDataProvider .
TDbContext Entity framework DbContext class.