2024-04-23 12:07:00 +04:00
|
|
|
|
using LawFirmDatabaseImplement.Models;
|
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
|
|
|
|
|
namespace LawFirmDatabaseImplement
|
|
|
|
|
{
|
|
|
|
|
public class LawFirmDatabase : DbContext
|
|
|
|
|
{
|
|
|
|
|
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
|
|
|
|
{
|
|
|
|
|
if (optionsBuilder.IsConfigured == false)
|
|
|
|
|
{
|
2024-06-19 23:52:53 +04:00
|
|
|
|
optionsBuilder.UseSqlServer(@"Data Source=localhost\SQLEXPRESS; Initial Catalog=LawFirmdbbd8;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True");
|
2024-04-23 12:07:00 +04:00
|
|
|
|
}
|
|
|
|
|
base.OnConfiguring(optionsBuilder);
|
|
|
|
|
}
|
|
|
|
|
public virtual DbSet<Blank> Blanks { set; get; }
|
|
|
|
|
public virtual DbSet<Document> Documents { set; get; }
|
|
|
|
|
public virtual DbSet<DocumentBlank> DocumentBlanks { set; get; }
|
|
|
|
|
public virtual DbSet<Order> Orders { set; get; }
|
2024-05-17 19:36:24 +04:00
|
|
|
|
public virtual DbSet<Client> Clients { set; get; }
|
2024-06-19 16:06:36 +04:00
|
|
|
|
public virtual DbSet<Message> Messages { set; get; }
|
|
|
|
|
public virtual DbSet<Implementer> Implementers { set; get; }
|
2024-05-24 18:50:45 +04:00
|
|
|
|
}
|
2024-04-23 12:07:00 +04:00
|
|
|
|
}
|