Ejemplo n.º 1
0
        protected async override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            DataBase = await Tenant.GetDataBase();

            optionsBuilder.UseSqlServer($"Server=localhost;Database={DataBase};Trusted_Connection=True;Pooling=false;");
            base.OnConfiguring(optionsBuilder);
        }