From de5194b463ab233a5094eb707132e0e56587644e Mon Sep 17 00:00:00 2001 From: Programmist73 Date: Sat, 1 Apr 2023 19:36:59 +0400 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=BE=D0=B7=D0=B4=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20=D0=B1=D0=B0=D0=B7=20=D0=B4=D0=B0=D0=BD=D0=BD=D1=8B?= =?UTF-8?q?=D1=85.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BankYouBancruptDatabase.cs | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/BankYouBankrupt/BankYouBankruptDatabaseImplement/BankYouBancruptDatabase.cs b/BankYouBankrupt/BankYouBankruptDatabaseImplement/BankYouBancruptDatabase.cs index 0575b75..803600d 100644 --- a/BankYouBankrupt/BankYouBankruptDatabaseImplement/BankYouBancruptDatabase.cs +++ b/BankYouBankrupt/BankYouBankruptDatabaseImplement/BankYouBancruptDatabase.cs @@ -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 Accounts { set; get; } + public virtual DbSet Cards { set; get; } + public virtual DbSet Cashiers { set; get; } + public virtual DbSet CashWithdrawals { set; get; } + public virtual DbSet Clients { set; get; } + public virtual DbSet Debitings { set; get; } + public virtual DbSet Creditings { set; get; } + public virtual DbSet MoneyTransfers { set; get; } - - } }