Browse Source

chore(migrator): move migrations DbContext constructor

Keep constructor placement consistent with the generated DbContext layout without behavior changes.
pull/1568/head
colin 4 weeks ago
parent
commit
3f09fcc533
  1. 13
      aspnet-core/migrations/LINGYUN.Abp.MicroService.AllInOne.EntityFrameworkCore/SingleMigrationsDbContext.cs

13
aspnet-core/migrations/LINGYUN.Abp.MicroService.AllInOne.EntityFrameworkCore/SingleMigrationsDbContext.cs

@ -1,4 +1,4 @@
using LINGYUN.Abp.AIManagement.Chats;
using LINGYUN.Abp.AIManagement.Chats;
using LINGYUN.Abp.AIManagement.EntityFrameworkCore;
using LINGYUN.Abp.AIManagement.Tokens;
using LINGYUN.Abp.AIManagement.Tools;
@ -122,11 +122,6 @@ public class SingleMigrationsDbContext :
public DbSet<FormDefinition> FormDefinitions { get; set; }
public DbSet<FormData> FormDatas { get; set; }
public DbSet<OrganizationUnitManagerAssignment> OrganizationUnitManagerAssignments { get; set; }
public SingleMigrationsDbContext(DbContextOptions<SingleMigrationsDbContext> options)
: base(options)
{
}
public DbSet<AuditLog> AuditLogs { get; set; }
@ -278,6 +273,12 @@ public class SingleMigrationsDbContext :
public DbSet<Blob> Blobs { get; set; }
public SingleMigrationsDbContext(DbContextOptions<SingleMigrationsDbContext> options)
: base(options)
{
}
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
base.OnModelCreating(modelBuilder);

Loading…
Cancel
Save