Table of Contents

Class DbServerConfigurator<T>

Namespace
Tlabs.Data.Store
Assembly
Tlabs.EfDataStore.dll

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

Constructors

DbServerConfigurator()

Default ctor.

protected DbServerConfigurator()

DbServerConfigurator(IDictionary<string, string>?)

Ctor from config.

protected DbServerConfigurator(IDictionary<string, string>? config)

Parameters

config IDictionary<string, string>

Fields

config

Configuration properties.

protected readonly IDictionary<string, string> config

Field Value

IDictionary<string, string>

connStr

Database connection string from configuration.

protected string connStr

Field Value

string

Methods

AddTo(IServiceCollection, IConfiguration)

public void AddTo(IServiceCollection services, IConfiguration cfg)

Parameters

services IServiceCollection
cfg IConfiguration

configureDbOptions(DbContextOptionsBuilder<DStoreContext<T>>)

Microsoft.EntityFrameworkCore.DbContextOptions configurator.

protected abstract void configureDbOptions(DbContextOptionsBuilder<DStoreContext<T>> opt)

Parameters

opt DbContextOptionsBuilder<DStoreContext<T>>