SHA256
GuestLog - Added GuestDocument db table.
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Somnia.GuestLog.Infrastructure.EntityConfigs;
|
||||
using Somnia.GuestLog.Models;
|
||||
|
||||
namespace Somnia.GuestLog.Infrastructure;
|
||||
|
||||
public partial class GuestLogContext : DbContext
|
||||
{
|
||||
public GuestLogContext(DbContextOptions<GuestLogContext> options)
|
||||
: base(options)
|
||||
{ }
|
||||
|
||||
public DbSet<GuestDocument> GuestDocuments { get; set; }
|
||||
|
||||
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.ApplyConfiguration<GuestDocument>(new GuestDocumentEntityConfig());
|
||||
|
||||
OnModelCreatingPartial(modelBuilder);
|
||||
base.OnModelCreating(modelBuilder);
|
||||
}
|
||||
|
||||
partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user