45 lines
1.3 KiB
C#
45 lines
1.3 KiB
C#
using Company.Domain.InsuranceJobItemAgg;
|
|
using Company.Domain.InsurancJobAgg;
|
|
using Company.Domain.RollCallAgg;
|
|
using CompanyManagment.EFCore.Mapping;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Company.Domain.CustomizeWorkshopEmployeeSettingsAgg.Entities;
|
|
using Company.Domain.CustomizeWorkshopSettingsAgg.Entities;
|
|
using CompanyManagment.EFCore.Migrations;
|
|
|
|
namespace CompanyManagment.EFCore
|
|
{
|
|
public class TestDbContext : DbContext
|
|
{
|
|
public DbSet<InsuranceJobItem> InsuranceJobItems { get; set; }
|
|
public DbSet<InsuranceJob> InsuranceJobs { get; set; }
|
|
public DbSet<CustomizeWorkshopEmployeeSettings> CustomizeWorkshopEmployeeSettings { get; set; }
|
|
public DbSet<CustomizeWorkshopSettings> CustomizeWorkshopSettings { get; set; }
|
|
|
|
public TestDbContext(DbContextOptions<TestDbContext> options) : base(options)
|
|
{
|
|
|
|
}
|
|
|
|
|
|
public TestDbContext()
|
|
{
|
|
|
|
}
|
|
|
|
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
{
|
|
var assembly = typeof(PersonalContractingpartyMapping).Assembly;
|
|
modelBuilder.ApplyConfigurationsFromAssembly(assembly);
|
|
base.OnModelCreating(modelBuilder);
|
|
|
|
}
|
|
}
|
|
}
|