Class DbServerConfigurator<T>
Database server options configurator base class.
public abstract class DbServerConfigurator<T> : IConfigurator<IServiceCollection> where T : class, IDStoreCtxConfigurator
  Type Parameters
T
- Inheritance
 - 
      
      DbServerConfigurator<T>
 
- Implements
 
- Inherited Members
 
- Extension Methods
 
Remarks
Implementations need to override configureDbOptions(DbContextOptionsBuilder<DStoreContext<T>>).
Constructors
DbServerConfigurator()
Default ctor.
protected DbServerConfigurator()
  DbServerConfigurator(IDictionary<string, string>?)
Ctor from config.
protected DbServerConfigurator(IDictionary<string, string>? config)
  Parameters
configIDictionary<string, string>
Fields
config
Configuration properties.
protected readonly IDictionary<string, string> config
  Field Value
connStr
Database connection string from configuration.
protected string connStr
  Field Value
Methods
AddTo(IServiceCollection, IConfiguration)
public void AddTo(IServiceCollection services, IConfiguration cfg)
  Parameters
servicesIServiceCollectioncfgIConfiguration
configureDbOptions(DbContextOptionsBuilder<DStoreContext<T>>)
Microsoft.EntityFrameworkCore.DbContextOptions configurator.
protected abstract void configureDbOptions(DbContextOptionsBuilder<DStoreContext<T>> opt)
  Parameters
optDbContextOptionsBuilder<DStoreContext<T>>