mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-08-05 23:52:26 +08:00
- 增加 IUpdate.SetSource ignoreVersion 参数可实现忽略乐观锁;#1161
This commit is contained in:
@ -73,8 +73,9 @@ namespace FreeSql
|
||||
/// </summary>
|
||||
/// <param name="source">实体集合</param>
|
||||
/// <param name="tempPrimarys">根据临时主键更新,a => a.Name | a => new{a.Name,a.Time} | a => new[]{"name","time"}</param>
|
||||
/// <param name="ignoreVersion">忽略 IsVersion 乐观锁版本号</param>
|
||||
/// <returns></returns>
|
||||
IUpdate<T1> SetSource(IEnumerable<T1> source, Expression<Func<T1, object>> tempPrimarys = null);
|
||||
IUpdate<T1> SetSource(IEnumerable<T1> source, Expression<Func<T1, object>> tempPrimarys = null, bool ignoreVersion = false);
|
||||
/// <summary>
|
||||
/// 更新数据,设置更新的实体,同时设置忽略的列<para></para>
|
||||
/// 忽略 null 属性:fsql.Update<T>().SetSourceAndIgnore(item, colval => colval == null)<para></para>
|
||||
|
Reference in New Issue
Block a user