Update demo

This commit is contained in:
sunkaixuan
2022-04-09 12:13:13 +08:00
parent 06d4f13599
commit e0f15ec15d
3 changed files with 7 additions and 3 deletions

View File

@@ -50,8 +50,7 @@ namespace OrmTest
{
if (context == null)
{
var configId = typeof(T).GetCustomAttribute<TenantAttribute>().configId;
Context = db.GetConnection(configId);
Context = db.GetConnectionWithAttr<T>();
Context.CodeFirst.InitTables<T>();
}
}