Browse Source

修改时间

master
wxd 1 year ago
parent
commit
764460b609
  1. 7
      src/Shentun.WebPeis.EntityFrameworkCore/EntityFrameworkCore/WebPeisDbContext.cs

7
src/Shentun.WebPeis.EntityFrameworkCore/EntityFrameworkCore/WebPeisDbContext.cs

@ -2,6 +2,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Reflection; using System.Reflection;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.ChangeTracking;
using Shentun.Peis.EntityFrameworkCore; using Shentun.Peis.EntityFrameworkCore;
using Shentun.WebPeis.Models; using Shentun.WebPeis.Models;
using Volo.Abp.AuditLogging; using Volo.Abp.AuditLogging;
@ -246,5 +247,11 @@ public partial class WebPeisDbContext : AbpDbContext<WebPeisDbContext>,
modelBuilder.ToSnakeCase(); modelBuilder.ToSnakeCase();
} }
protected override void ApplyAbpConceptsForAddedEntity(EntityEntry entry)
{
base.ApplyAbpConceptsForAddedEntity(entry);
SetModificationAuditProperties(entry);
}
partial void OnModelCreatingPartial(ModelBuilder modelBuilder); partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
} }
Loading…
Cancel
Save