diff --git a/src/ReC.Infrastructure/ReC.Infrastructure.csproj b/src/ReC.Infrastructure/ReC.Infrastructure.csproj index fa71b7a..987f78b 100644 --- a/src/ReC.Infrastructure/ReC.Infrastructure.csproj +++ b/src/ReC.Infrastructure/ReC.Infrastructure.csproj @@ -6,4 +6,12 @@ enable + + + + + + + + diff --git a/src/ReC.Infrastructure/RecDbContext.cs b/src/ReC.Infrastructure/RecDbContext.cs new file mode 100644 index 0000000..2d62aec --- /dev/null +++ b/src/ReC.Infrastructure/RecDbContext.cs @@ -0,0 +1,20 @@ +using Microsoft.EntityFrameworkCore; +using ReC.Domain.Entities; + +namespace ReC.Infrastructure; + +public class RecDbContext(DbContextOptions options) : DbContext(options) +{ + public DbSet EndpointParams { get; set; } + + public DbSet Actions { get; set; } + + public DbSet OutRes { get; set; } + + protected override void OnModelCreating(ModelBuilder modelBuilder) + { + base.OnModelCreating(modelBuilder); + + modelBuilder.Entity().HasNoKey(); + } +}