From 3f09fcc533f0b9d262455ec47ea3beefbfb2e865 Mon Sep 17 00:00:00 2001 From: colin Date: Mon, 26 Oct 2026 14:47:42 +0800 Subject: [PATCH] chore(migrator): move migrations DbContext constructor Keep constructor placement consistent with the generated DbContext layout without behavior changes. --- .../SingleMigrationsDbContext.cs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/aspnet-core/migrations/LINGYUN.Abp.MicroService.AllInOne.EntityFrameworkCore/SingleMigrationsDbContext.cs b/aspnet-core/migrations/LINGYUN.Abp.MicroService.AllInOne.EntityFrameworkCore/SingleMigrationsDbContext.cs index 8987e0ec8..90cd35f4b 100644 --- a/aspnet-core/migrations/LINGYUN.Abp.MicroService.AllInOne.EntityFrameworkCore/SingleMigrationsDbContext.cs +++ b/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 FormDefinitions { get; set; } public DbSet FormDatas { get; set; } public DbSet OrganizationUnitManagerAssignments { get; set; } - public SingleMigrationsDbContext(DbContextOptions options) - : base(options) - { - - } public DbSet AuditLogs { get; set; } @@ -278,6 +273,12 @@ public class SingleMigrationsDbContext : public DbSet Blobs { get; set; } + public SingleMigrationsDbContext(DbContextOptions options) + : base(options) + { + + } + protected override void OnModelCreating(ModelBuilder modelBuilder) { base.OnModelCreating(modelBuilder);