Skip to content

Commit

Permalink
Added back in the default naming scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
noremacskich committed Oct 13, 2024
1 parent 872f745 commit 90ff740
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion api/ExpressedRealms.DB/ExpressedRealmsDbContext.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Audit.EntityFramework;
using Audit.Core;
using Audit.EntityFramework;
using ExpressedRealms.DB.Characters;
using ExpressedRealms.DB.Models.Expressions;
using ExpressedRealms.DB.Models.Skills;
Expand Down Expand Up @@ -36,6 +37,9 @@ protected override void OnModelCreating(ModelBuilder builder)
public ExpressedRealmsDbContext(DbContextOptions<ExpressedRealmsDbContext> options)
: base(options)
{
Audit.Core.Configuration.Setup()
.UseEntityFramework(x => x
.AuditTypeNameMapper(typeName => typeName + "_AuditTrail"));
}

public DbSet<Character> Characters { get; set; }
Expand Down

0 comments on commit 90ff740

Please sign in to comment.