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

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]"));
}
}
}