54 Commits

Author SHA1 Message Date
28810
682b5b35b8 - 修复 DbContext/UnitOfWork EntityChangeReport 参数 BeforeObject 值无效的 bug; 2020-10-13 17:26:12 +08:00
28810
103ae63e9f optimize internal methods 2020-09-20 13:36:49 +08:00
28810
704e59bf21 - 修复 FreeSql.DbContext 对同一实体重复 Update,第二次无效的 Bug; 2020-09-14 11:33:20 +08:00
28810
f7ce4dc636 - 增加 人大金仓 Ado.Net 实现 FreeSql.Provider.KingbaseES #325; 2020-08-21 19:46:23 +08:00
28810
dfac943495 - 完善 DbContext/UnitOfWork EntityChange 更新对象之前的值; 2020-08-05 13:43:49 +08:00
28810
e092d10fee - 修复 新功能 BeginEdit bug;#397 2020-08-04 21:55:52 +08:00
28810
18cabd22b9 - 完善 AsTreeCte + ToUpdate/ToDelete 实现树所有子节点删除或更新; 2020-08-04 20:54:15 +08:00
28810
552926dd96 修正命名 NaviteTuple 为 NativeTuple 2020-08-02 13:38:23 +08:00
28810
f897aa0a71 v1.7.1(兼容问题 Microsoft.Data.SqliClient) #394 #384 #330 #115 #17 2020-08-01 12:03:12 +08:00
28810
c9c91590a1 - 修复 BaseRepository Delete 方法未正确返回影响的行值 #373; 2020-07-16 09:36:34 +08:00
28810
49aa899f81 - 增加 神州通用 ShenTong 实现;#325 2020-06-10 02:07:55 +08:00
28810
909fe9bc7a update kingbaseES 2020-05-31 10:42:26 +08:00
28810
635244786a - 增加 DbContextOptions.EnableGlobalFilter 设置是否在 DbContext/Repository 中启用全局过滤器; 2020-04-26 00:34:50 +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
03fe0921ee - 增加 EfCoreFluentApi HasData 设定 CodeFirst 种子数据;
- 完善 EfCoreFluentApi 功能测试;
- 增加 DbContextOptions.NoneParameter 设置是否使用参数化执行 Insert/Update;
2020-04-03 08:55:56 +08:00
28810
22a2450e05 - 增加 ISelect`1 ToDictionary 方法查询返回字典; 2020-03-20 01:52:43 +08:00
28810
2089a1f747 - 修复 LazyLoading 依赖项目 CSScript.Core 升级的 bug;(以上都不再升级该依赖) 2020-03-06 17:01:30 +08:00
28810
ab52728f7f - 增加 BaseEntity SaveMany 方法; 2020-03-06 13:13:47 +08:00
28810
b45360bfbe - 修复 DbContext/Repository SaveMany 一对多保存时删除条件 bug; 2020-03-06 00:15:35 +08:00
28810
24cc8bc1da - 调整 Aop 改为 event 事件;
- 调整 Ado.AopCommandExecuting/AopCommandExecuted 到 Aop.CommandBefore/After;
- 增加 Aop.TraceBefore/After 事件;
2020-03-02 18:57:53 +08:00
28810
54ceb537d9 修正拼写错误的内部方法名 2020-01-05 10:37:02 +08:00
28810
a33cad02cc ## v0.12.12 #150 2019-12-09 09:10:41 +08:00
28810
65e3ed0091 - 修复 DbContext TrackList 对匿名对象处理的 bug;#150 2019-12-08 22:59:34 +08:00
28810
5d4e7bb407 - 修复 SaveMany 缓存保存列名找不到的错误提示; 2019-12-08 00:44:36 +08:00
28810
6b7eefb5e7 - 修复 DbContext SaveMany 对比删除的 bug; 2019-12-01 12:51:11 +08:00
28810
bfed0cd124 ## v0.12.5 2019-11-25 22:33:44 +08:00
28810
8c5d5ddedc - 增加 UnitOfWork 静态属性 DebugBeingUsed,用于生产环境监视正在使用中的事务; 2019-11-21 21:55:04 +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
7d1f9b126f debug Destructor #131 2019-11-15 13:25:14 +08:00
28810
97351a4e6e - 优化 Aop.AuditValue 审计过的值,IUpdate.UpdateColumns 即使不指定该列也会更新; 2019-10-29 09:55:54 +08:00
28810
f7633e9f67 - 增加 FreeSql.DbContext DbSet Remove 可根据 lambda 条件删除数据的方法; 2019-10-26 11:11:05 +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
dcf1da36d4 ## v0.9.18
- 增加 PostgreSQL 的 Odbc 访问提供,相比 FreeSql.Provider.PostgreSQL 支持的类型更少;
- 增加 通用的 Odbc 访问提供,不能迁移实体到数据库,不能 Skip 这样来分页,理论上能 crud 所有 odbc 数据库;
2019-09-21 00:48:34 +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
baf6d768a4 - 修复 Aop.AuditValue 与 FreeSql.Repository 主键状态管理的冲突; 2019-08-31 03:00:17 +08:00
28810
a62d07d2b7 - 修复 DbContext.Save 只查询不更新的bug; 2019-08-14 11:22:34 +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
3ca91b70a9 修复 FreeSql.DbContext 当插入实体带 Guid 主键无值时候的 bug 2019-03-30 19:51:14 +08:00
28810
a7e06843a9 FreeSql.DbContext 融合 Repository + UnitOfWork 2019-03-30 19:11:17 +08:00