Adding
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
namespace LCU.API.Internal.LoanRateLoadTestingLib.Persistence;
|
||||
|
||||
public class AppDbContext : DbContext
|
||||
{
|
||||
public DbSet<LoadTestRunInfo> LoadTestRunInfos { get; set; }
|
||||
public DbSet<RateProcessingInfo> RateProcessingInfos { get; set; }
|
||||
public AppDbContext(DbContextOptions<AppDbContext> options) : base(options) { }
|
||||
|
||||
protected override void OnModelCreating(ModelBuilder builder)
|
||||
{
|
||||
base.OnModelCreating(builder);
|
||||
|
||||
builder.Entity<LoadTestRunInfo>().ToTable("LoadTestRunInfo");
|
||||
builder.Entity<RateProcessingInfo>().ToTable("RateProcessingInfo");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user