public ProcessorTwo(DatabaseIntegration dataBaseIntegration) { this.dataBaseIntegration = dataBaseIntegration; }
public ProcessorOne(DatabaseIntegration databaseIntegration) { this.databaseIntegration = databaseIntegration; }
public static IServiceCollection AddTenantDatabasePerTable <TDbContext>(this IServiceCollection services, string connectionStringName, string key = "default", DatabaseIntegration database = DatabaseIntegration.Mysql) where TDbContext : DbContext, ITenantDbContext { var option = new ConnectionResolverOption() { Key = key, Type = ConnectionResolverType.ByTabel, ConnectinStringName = connectionStringName, DBType = database }; return(services.AddTenantDatabasePerTable <TDbContext>(option)); }