- 增加 IUpdate.WhereCaseSource 方法,实现批量修改时的条件判断;

- 增加 FreeSql.DbContext 行级锁;
This commit is contained in:
28810
2019-03-29 12:58:58 +08:00
parent 025259bb81
commit 4edfb04010
18 changed files with 220 additions and 39 deletions

View File

@ -101,6 +101,13 @@ namespace FreeSql {
/// <param name="notExists">不存在</param>
/// <returns></returns>
IUpdate<T1> WhereExists<TEntity2>(ISelect<TEntity2> select, bool notExists = false) where TEntity2 : class;
/// <summary>
/// 用于批量修改时,生成 where dbName = case when id = 1 then v1 end 的条件
/// </summary>
/// <param name="CsName">属性名</param>
/// <param name="thenValue"></param>
/// <returns></returns>
IUpdate<T1> WhereCaseSource(string CsName, Func<string, string> thenValue);
/// <summary>
/// 设置表名规则,可用于分库/分表参数1默认表名返回值新表名