using BankDatabase.Models; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BankDatabase { public class BankDbContext : DbContext { protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { if (optionsBuilder.IsConfigured == false) { optionsBuilder.UseSqlServer ( @"БАЗУ ДАННЫХ ДОБАВЬ ГЕНИЙ" ); } base.OnConfiguring(optionsBuilder); } public virtual DbSet Clients { get; set; } public virtual DbSet Deals { get; set; } public virtual DbSet Expensess { get; set; } public virtual DbSet ExpensesForDeals { get; set; } public virtual DbSet Operationss { get; set; } public virtual DbSet OperationsInDeals { get; set; } public virtual DbSet Workers { get; set; } public virtual DbSet Payments { get; set; } } }