using BankDatabaseImplement.Models; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.ComponentModel.Design; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BankDatabaseImplement { public class BankDatabase : DbContext { protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { if (optionsBuilder.IsConfigured == false) { optionsBuilder.UseSqlServer(@"Data Source=localhost\SQLEXPRESS;Initial Catalog=BankDatabase;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True"); } base.OnConfiguring(optionsBuilder); } public virtual DbSet Operators { set; get; } public virtual DbSet Deals { set; get; } public virtual DbSet Payments { set; get; } public virtual DbSet Transfers { set; get; } public virtual DbSet DealPayments { set; get; } public virtual DbSet CurrencyPayments { set; get; } public virtual DbSet Currencies { set; get; } public virtual DbSet BankOperators { set; get; } public virtual DbSet CreditPrograms { set; get; } public virtual DbSet CurrencyPurchases { set; get; } public virtual DbSet CreditProgramCurrencies { set; get; } } }