28810
90b2418fb0
add summary
2020-04-01 23:20:42 +08:00
28810
58aa99a6e6
- 调整 Repository 接口定义,合并为一个 IBaseRepository;
2020-03-25 13:36:13 +08:00
28810
59b9b1272b
- 调整 移除对 System.ValueType 的依赖,减少版本冲突问题;(目前 FreeSql.dll 无任何公用库依赖)
2020-03-07 16:08:03 +08:00
28810
90101e2d22
v1.1.0-preview3
2020-01-09 18:21:29 +08:00
28810
77463154e1
- 修复 BaseRepository.UnitOfWork 延迟设置无效的 bug;
2020-01-03 22:06:23 +08:00
28810
04107d3d24
- 增加 Repository/DbContext SaveMany 方法实现一对多,子数据的完整保存;
...
- 调整 SaveManyToMany 方法名为 SaveMany;
2019-11-21 16:42:20 +08:00
28810
e26dbfe526
- 增加 DbContext、Repository SaveManyToMany 方法,实现手工保存 ManyToMany 关联数据;
2019-11-16 01:47:04 +08:00
28810
7d1f9b126f
debug Destructor #131
2019-11-15 13:25:14 +08:00
28810
b97156b482
- 增加 IFreeSql.GlobalFilter 全局过滤器;
...
- 移除 TableAttribute.SelectFilter 功能;
2019-10-24 02:17:22 +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
33cb3e2dae
- 增加 DbContext/Repository ManyToMany联级保存功能(之前已支持OneToMany);
2019-09-29 15:02:08 +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
fa61d8a3d1
- 移除 FreeSql.Repository 扩展方法 FromRepository;
...
- 调整 ISelect.AsTable 规则,每一次使用将增加 UNION ALL 查询;
- 优化 AsTable UseSyncStructureToLower/ToUpper 设置,兼容 AsTable((t,o) => "(select * from tb)"); #89
2019-09-10 09:26:08 +08:00
28810
710b12c3e8
BaseRepository 改动
2019-08-13 19:25:11 +08:00
28810
176b60b719
RepositoryDbContext 改动
2019-08-13 19:17:10 +08:00
28810
a79ee52b4f
- 优化 DbContext/Repository 局部调整;
2019-08-13 19:13:48 +08:00
28810
fc84f68f3a
- 增加 UnitOfWork.Current 静态属性,AsyncLocal 实现 [NETStandard 2.0];
2019-07-25 16:45:07 +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