43 Commits

Author SHA1 Message Date
2881099
87f2cba55f - 修复 2.0.103 Uow.Orm 事务 bug; 2020-12-07 20:18:35 +08:00
2881099
eae4fa4a86 - 优化 IUnitOfWork/DbContext/Repository .Orm.Ado 和 CRUD 都与自身事务保持一致; 2020-12-03 23:57:26 +08:00
2881099
2947572f05 - 增加 FreeSql.DbContext/Repository Async CancellationToken 参数;#537 2020-11-17 19:44:47 +08:00
28810
306f619e90 - 修复 Dto 映射查询属性名不区分大小写 bug #427; 2020-08-19 16:11:22 +08:00
28810
dfac943495 - 完善 DbContext/UnitOfWork EntityChange 更新对象之前的值; 2020-08-05 13:43:49 +08:00
28810
552926dd96 修正命名 NaviteTuple 为 NativeTuple 2020-08-02 13:38:23 +08:00
28810
b3352faef5 - 优化 移除 fsql.Transaction 线程事务超时机制;#323 2020-05-23 18:55:33 +08:00
28810
45f06c3025 update internal code 2020-05-23 00:50:24 +08:00
28810
6a443620e7 - 增加 IFreeSql.InsertOrUpdate 方法 #316 2020-05-21 01:59:35 +08:00
28810
635244786a - 增加 DbContextOptions.EnableGlobalFilter 设置是否在 DbContext/Repository 中启用全局过滤器; 2020-04-26 00:34:50 +08:00
28810
5e15749aa8 - 增加 UnitOfWorkManager 工作单元管理器,实现多种传播事务;#289 2020-04-24 01:47:48 +08:00
28810
36759402cc - 增加 FreeSql.DbContext OnModelCreating 虚方法,实现在 DbContext 使用 FluentApi;#4 - 移除 FreeSql.Extensions.EfCoreFluentApi,功能移至 FreeSql.DbContext; 2020-04-16 02:58:34 +08:00
28810
bd79fc803e rename DbContext Internal Method 2020-04-11 12:02:50 +08:00
28810
52fbe5ed86 - 优化 DbContext/Repository Orm 属性进行 CURD 与自身事务相同【新突破】;#270 2020-04-10 19:54:43 +08:00
28810
4e4240ff7a add ToTreeList tests #268 2020-04-10 13:09:08 +08:00
28810
03fe0921ee - 增加 EfCoreFluentApi HasData 设定 CodeFirst 种子数据;
- 完善 EfCoreFluentApi 功能测试;
- 增加 DbContextOptions.NoneParameter 设置是否使用参数化执行 Insert/Update;
2020-04-03 08:55:56 +08:00
28810
90b2418fb0 add summary 2020-04-01 23:20:42 +08:00
28810
fa3aa8ec83 - 调整 DbContext/Repository EnableAddOrUpdateNavigateList 默认关闭; 2020-03-05 16:58:26 +08:00
28810
54ceb537d9 修正拼写错误的内部方法名 2020-01-05 10:37:02 +08:00
28810
04107d3d24 - 增加 Repository/DbContext SaveMany 方法实现一对多,子数据的完整保存;
- 调整 SaveManyToMany 方法名为 SaveMany;
2019-11-21 16:42:20 +08:00
28810
330eb40285 ## v0.11.18 2019-11-16 04:13:07 +08:00
28810
e26dbfe526 - 增加 DbContext、Repository SaveManyToMany 方法,实现手工保存 ManyToMany 关联数据; 2019-11-16 01:47:04 +08:00
28810
17241be66d debug UnitOfWork Destructor #131 2019-11-15 16:36:34 +08:00
28810
7d1f9b126f debug Destructor #131 2019-11-15 13:25:14 +08:00
28810
b331630954 - 修复 FreeSql.DbContext 析构方法的 bug,错误的回滚了外部 UnitOfWork; 2019-11-01 18:49:13 +08:00
28810
cb55f51413 - 优化 FreeSql.DbContext 构造方法,方便注入使用; 2019-10-23 12:32:47 +08:00
28810
de8cf9e17d - 增加 .Net Framework 4.0 的支持,出于环境考虑 .Net Framework 4.0 不支持异步方法;
- 增加 IFreeSql.Insert<T>(IEnumerable<T1> source) 方法;
2019-10-21 15:14:18 +08:00
28810
d7877924a5 - 调整 DbContext.EntityChangeInfo 类名为 DbContext.EntityChangeReport.ChangeInfo;
- 调整 IUnitOfWork 接口,移除 OnEntityChange 属性,增加 EntityChangeReport 属性;
2019-10-15 19:18:31 +08:00
28810
e823f9dcd0 - 增加 FreeSql.DbContext 实体对象的变化事件;
> 文档:https://github.com/2881099/FreeSql/wiki/DbContext#%E5%AE%9E%E4%BD%93%E5%8F%98%E5%8C%96%E4%BA%8B%E4%BB%B6
- 补充 Aop.CurdBefore 事件参数 Table 实体类型的元数据;
2019-10-12 01:02:42 +08:00
28810
5a8188739c - 优化 DbContext/Repository ManyToMany联级保存功能,当是新增数据时不查询中间表记录对比差异(直接插入); 2019-09-29 19:06:31 +08:00
28810
33cb3e2dae - 增加 DbContext/Repository ManyToMany联级保存功能(之前已支持OneToMany); 2019-09-29 15:02:08 +08:00
28810
7514000490 更新错误的命名 #103 2019-09-27 12:43:43 +08:00
28810
8d92ccd751 ## v0.9.16
- 增加 BaseRepository.AttachOnlyPrimary 方法,只附加实体的主键值;
> 在更新前使用可实现不查询数据库再更新、也可以实现更新时不更新值为 null 的字段
```csharp
class T {
    public int id { get; set; }
    public string name { get; set; }
    public string other { get; set; }
}
var item = new T { id = 1, name = "xx" };
fsql.GetRepository<T>().AttachOnlyPrimary(item).Update(item); //只更新 name
```
- 修复 Lambda 表达式中 DateTime.Now.ToString("yyyyMMdd") 不能直接执行的 bug;
2019-09-18 16:58:13 +08:00
28810
a79ee52b4f - 优化 DbContext/Repository 局部调整; 2019-08-13 19:13:48 +08:00
28810
79ab3ae217 - 补充 使用 IsIgnore 忽略后,表达式再使用时的友好错误提示; 2019-08-13 17:17:38 +08:00
28810
f8c3608fda 源代码改用vs默认格式化 2019-06-27 09:40:35 +08:00
28810
611c066481 - 合并 FreeSql.DbContext 项目至 FreeSql 维护; 2019-06-26 10:09:26 +08:00
28810
be5259dd68 移除 FreeSql.DbContext,成为独立项目 2019-04-01 10:48:39 +08:00
28810
a7e06843a9 FreeSql.DbContext 融合 Repository + UnitOfWork 2019-03-30 19:11:17 +08:00
28810
496750da94 FreeSql.DbContext 内部仓储融合 2019-03-30 17:14:23 +08:00
28810
ff758f338c 修复 DbContext bug 2019-03-29 22:31:12 +08:00
28810
df8845e5b1 ## v0.3.27
- 增加 行级锁功能,适用修改实体;
- 增加 FreeSql.Repository 默认依赖注入的方式,同时保留原有 Autofac;
- 优化 FreeSql.Repository Insert 逻辑,参考了 FreeSql.DbContext;
- 优化 FreeSql.IUpdate 参照 IInsert 对大批量更新,拆分执行;
- 修复 FreeSql.IInsert ClearData 重复利用的 bug(使用 IgnoreColumns 进行大批量插入时会发生);
2019-03-29 21:28:43 +08:00
28810
4edfb04010 - 增加 IUpdate.WhereCaseSource 方法,实现批量修改时的条件判断;
- 增加 FreeSql.DbContext 行级锁;
2019-03-29 12:58:58 +08:00