Update Demo

This commit is contained in:
sunkaixuna
2021-08-07 05:07:51 +08:00
parent e2fd1c4515
commit 19772fb156

View File

@@ -22,7 +22,6 @@ namespace OrmTest
public void Test()
{
base.db.BeginTran();
base.GetList(); //调用内部仓储方法
base.ChangeRepository<Repository<C2Table>>().GetList();//调用外部仓储
@@ -58,6 +57,7 @@ namespace OrmTest
var configId = typeof(T).GetCustomAttribute<TenantAttribute>().configId;
Context = db.GetConnection(configId);
this.db = db;
this.db.CodeFirst.InitTables<T>();
}
}