using BankYouBankruptDatabaseImplement.Models; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BankYouBankruptDatabaseImplement { public class BankYouBancruptDatabase : DbContext { protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { if (!optionsBuilder.IsConfigured) { //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; } } }