mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 12:28:15 +08:00
- 增加 IUpdate.WhereCaseSource 方法,实现批量修改时的条件判断;
- 增加 FreeSql.DbContext 行级锁;
This commit is contained in:
@ -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:默认表名;返回值:新表名;
|
||||
|
Reference in New Issue
Block a user