DataProviderExtensions Class
Namespace: Nucleus.Data.Common
Assembly: Nucleus.Data.Common.dll
Common data provider dependency injection registration extension methods.
Methods
AddDataProvider<TDataProvider>
(IServiceCollection,IConfiguration) Method
AddDataProvider<TDataProvider> (IServiceCollection services, IConfiguration configuration)
Add data provider objects to the service collection for the data provider specified by TDataProvider. This overload uses the default schema name for the data provider type.
AddDataProvider<TDataProvider>
(IServiceCollection,IConfiguration,String) Method
AddDataProvider<TDataProvider> (IServiceCollection services, IConfiguration configuration, String schemaName)
Add data provider objects to the service collection for the data provider specified by TDataProvider. This overload allows callers to specify their schema name instead of using the default.
AddDataProviderFactory
(IServiceCollection,IConfiguration) Method
AddDataProviderFactory (IServiceCollection services, IConfiguration configuration)
Add the default data provider factory to the services collection.
GetDefaultSchemaName
(Type) Method
GetDefaultSchemaName (Type type)
Return the default namespace for a type.