Exemplo n.º 1
0
 public ProcessorTwo(DatabaseIntegration dataBaseIntegration)
 {
     this.dataBaseIntegration = dataBaseIntegration;
 }
Exemplo n.º 2
0
 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));
        }