## v0.3.27

- 增加 行级锁功能,适用修改实体;
- 增加 FreeSql.Repository 默认依赖注入的方式,同时保留原有 Autofac;
- 优化 FreeSql.Repository Insert 逻辑,参考了 FreeSql.DbContext;
- 优化 FreeSql.IUpdate 参照 IInsert 对大批量更新,拆分执行;
- 修复 FreeSql.IInsert ClearData 重复利用的 bug(使用 IgnoreColumns 进行大批量插入时会发生);
This commit is contained in:
28810
2019-03-29 21:28:43 +08:00
parent 578615ed3c
commit df8845e5b1
33 changed files with 831 additions and 421 deletions

View File

@ -101,13 +101,6 @@ 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默认表名返回值新表名