Testing serilog
This commit is contained in:
@ -11,8 +11,23 @@ namespace WinFormDiApp.DAL
|
||||
|
||||
public virtual DbSet<Member> Members { get; set; }
|
||||
public virtual DbSet<AccountRecord> AccountRecords { get; set; }
|
||||
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<AccountRecord>()
|
||||
.HasIndex(e => new
|
||||
{
|
||||
e.BetalDatum,
|
||||
e.Belopp,
|
||||
e.Konto
|
||||
})
|
||||
.IsUnique();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
public class DesignTimeDbContextFactory : IDesignTimeDbContextFactory<ApplicationDbContext>
|
||||
{
|
||||
public ApplicationDbContext CreateDbContext(string[] args)
|
||||
|
||||
Reference in New Issue
Block a user