Merge pull request #3681 from zyhfish/task/fix-bug-3648

fix #3648: update the template to correct the entity table name.
This commit is contained in:
Shaun Walker 2024-01-25 13:41:13 -05:00 committed by GitHub
commit 4e1fc9b031
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,5 +15,12 @@ namespace [Owner].Module.[Module].Repository
{
// ContextBase handles multi-tenant database connections
}
protected override void OnModelCreating(ModelBuilder builder)
{
base.OnModelCreating(builder);
builder.Entity<Models.[Module]>().ToTable(ActiveDatabase.RewriteName("[Owner][Module]"));
}
}
}