using AccountingWarehouseProductsDatabaseImplement.Models; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AccountingWarehouseProductsDatabaseImplement { public class AccountingWarehouseProductsDatabase : DbContext { protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { if (optionsBuilder.IsConfigured == false) { optionsBuilder.UseSqlServer(@"Data Source=.\SQLEXPRESS;Initial Catalog=AccountingWarehouseProductsDatabase;Integrated Security=True;MultipleActiveResultSets=True;TrustServerCertificate=True"); } base.OnConfiguring(optionsBuilder); } public virtual DbSet Suppliers { get; set; } public virtual DbSet Warehouses { get; set; } public virtual DbSet Products { get; set; } public virtual DbSet Shipments { get; set; } public virtual DbSet Stands { get; set; } public virtual DbSet Orders { get; set; } public virtual DbSet OrderProduct { get; set; } public virtual DbSet WarehouseProduct { get; set; } } }