fix #3648: update the template to correct the entity table name.

This commit is contained in:
Ben 2024-01-25 23:00:45 +08:00
parent e36f13c595
commit 3c328a00b5

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