Создание баз данных.
This commit is contained in:
parent
db7b5513db
commit
de5194b463
@ -15,19 +15,25 @@ namespace BankYouBankruptDatabaseImplement
|
||||
{
|
||||
if (!optionsBuilder.IsConfigured)
|
||||
{
|
||||
optionsBuilder.UseSqlServer(@"Data Source=SHADOWIK\SHADOWIK;Initial Catalog=PizzeriaDatabase;Integrated Security=True;TrustServerCertificate=True");
|
||||
}
|
||||
//optionsBuilder.UseSqlServer(@"Data Source=SHADOWIK\SHADOWIK;Initial Catalog=BankYouBankrupt;Integrated Security=True;TrustServerCertificate=True");
|
||||
optionsBuilder.UseSqlServer(@"Data Source=LAPTOP-CFLH20EE\SQLEXPRESS;Initial Catalog=BankYouBankrupt;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True");
|
||||
}
|
||||
base.OnConfiguring(optionsBuilder);
|
||||
}
|
||||
public virtual DbSet<Account> Accounts { set; get; }
|
||||
|
||||
public virtual DbSet<Card> Cards { set; get; }
|
||||
|
||||
public virtual DbSet<Cashier> Cashiers { set; get; }
|
||||
|
||||
public virtual DbSet<CashWithdrawal> CashWithdrawals { set; get; }
|
||||
|
||||
public virtual DbSet<Client> Clients { set; get; }
|
||||
|
||||
public virtual DbSet<Debiting> Debitings { set; get; }
|
||||
|
||||
public virtual DbSet<Crediting> Creditings { set; get; }
|
||||
|
||||
public virtual DbSet<MoneyTransfer> MoneyTransfers { set; get; }
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user