Update queryable.ToSql()

This commit is contained in:
sunkaixuna
2021-08-03 21:08:07 +08:00
parent 2babcd9be7
commit e7ed715874
3 changed files with 24 additions and 7 deletions

View File

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