优化代码、数据库字符串连接

This commit is contained in:
不做码农
2023-06-04 16:43:35 +08:00
parent 2e39825b5c
commit cdd4b42f0a
7 changed files with 98 additions and 37 deletions

View File

@@ -168,6 +168,7 @@ namespace ZR.Repository
{
return Context.Storageable(t);
}
/// <summary>
///
/// </summary>
@@ -189,6 +190,11 @@ namespace ZR.Repository
}
}
/// <summary>
/// 使用事务
/// </summary>
/// <param name="action"></param>
/// <returns></returns>
public bool UseTran2(Action action)
{
var result = Context.Ado.UseTran(() => action());