59 Commits

Author SHA1 Message Date
28810
4cde2a3280 - 增加 ISelect.AsCteTree() 递归查询树表所有子记录; 2020-06-27 04:21:00 +08:00
28810
73eb3c8b21 - 增加 StringLength/MaxLength 对 byte[] 的支持; 2020-06-23 14:48:06 +08:00
28810
368da0b04e - 增加 达梦 表达式解析 yyyyMMdd 常用 c# 日期格式化; 2020-05-24 08:23:04 +08:00
28810
2a42731134 - 增加 Oracle 表达式解析 yyyyMMdd 常用 c# 日期格式化; 2020-05-24 05:50:09 +08:00
28810
511d8f909a - 优化未发布的功能 IFreeSql.InsertOrUpdate 2020-05-23 18:17:54 +08:00
28810
99f0dd7391 - 增加 IUpdate.SetSourceIgnore 方法,可实现忽略 null 属性的更新; 2020-05-22 18:20:28 +08:00
28810
6a443620e7 - 增加 IFreeSql.InsertOrUpdate 方法 #316 2020-05-21 01:59:35 +08:00
28810
0991464fd0 - 修复 IUpdate.Set(a => a.xx = null) 表达式解析 bug;#311 2020-05-15 13:27:44 +08:00
28810
44638a1e97 add WhereDynamic UnitTests 2020-04-13 16:26:09 +08:00
28810
613940df20 - 修复 MySql 字符串反斜杠无效的 bug; 2020-04-12 19:00:29 +08:00
28810
4e4240ff7a add ToTreeList tests #268 2020-04-10 13:09:08 +08:00
28810
ee1e292165 - 增加 GroupBy ToDictionary 返回字段的查询方法,TKey 为 GroupBy 选择的对象;
- 整理 GroupBy 所有方法不使用 DTO 映射规则;
2020-04-08 19:10:04 +08:00
28810
fa59a6e3e8 - 完善 GroupBy count(b.id) 指定字段统计; 2020-04-08 16:19:14 +08:00
28810
7c55f09d47 更新 Unit测试 2020-04-08 14:19:00 +08:00
28810
0f3bad338f v1.3.5 2020-04-07 18:09:29 +08:00
28810
f3593a321f - 增加 FreeSqlBuilder UseNameConvert 方法,类名、属性名都生效;
- 调整 FreeSqlBuilder,准备移除 UseEntityPropertyNameConvert/UseSyncStructureToLower/UseSyncStructureToUpper 方法;#260
2020-03-31 07:02:42 +08:00
28810
558fc52cf0 - 调整 Oracle StringLength/MaxLength -1 时候映射为 nclob; 2020-03-31 06:07:47 +08:00
28810
7795296328 - 增加 Oracle CLOB/NCLOB 大文本类型读写支持;#259 2020-03-31 05:56:49 +08:00
28810
dc625218d6 - 修复 ToTreeList 的问题 #255 2020-03-27 18:41:11 +08:00
28810
dbc323a22c - 修复 CodeFirst IsNullable 迁移脚本重复 NOT NULL 语法错误; 2020-03-27 17:35:59 +08:00
28810
6fbdbe3327 - 修改 StringLength/MaxLength 对 Oracle varchar2 类型无效的 bug; 2020-03-27 16:51:28 +08:00
28810
2544db5c4b up 2020-03-20 20:42:13 +08:00
28810
25312ceead v1.3.0-preview10 tests 2020-03-20 02:14:29 +08:00
28810
22a2450e05 - 增加 ISelect`1 ToDictionary 方法查询返回字典; 2020-03-20 01:52:43 +08:00
28810
1e88e8add2 - 增加 IUpdate.SetDto 单元测试;#218 2020-02-28 13:18:33 +08:00
28810
f22f65fee9 - 修复 DbContext/Repository Update 不更新 DbUpdateValue 的问题;#219 2020-02-28 10:41:03 +08:00
28810
02cd7ad557 - 完善 IUpdate.SetSource 组合主键的数据更新单元测试; 2020-02-24 18:03:37 +08:00
28810
c64deb3d20 - 修复 GroupBy 类型转换错误;#186
- 修复 .ToList(a => new DTO(a.id)) 报 未将对象引用设置到对象的实例 问题; #187
- 修复 update语句,二元运算解析出错; #184
2020-01-19 23:53:06 +08:00
28810
fbbd74f54c - 完善 [Column(ServerTime = Utc)] 特性,对 Update 时也能生效; 2020-01-06 19:36:30 +08:00
28810
f5128f3308 - 增加 ISelectGrouping 分组查询总量的方法 .Count(); 2019-12-21 20:00:39 +08:00
28810
fe5b98509b - 增加 ISelect.ToSql 字段别名设置,默认为 AsIndex,可改为 AsProperty;#158 2019-12-17 22:08:12 +08:00
28810
e1e3e4a3b2 - 增加 Where In 表达式解析;
- 增加 FreeSqlBuilder.UseConnectionFactory 自定义数据库连接对象的创建方法;
2019-12-17 01:39:53 +08:00
28810
51494c31a2 - 修复 ISelect.AsTable union all 查询对 count/max/min/avg/sum 的别名 bug;#157 2019-12-16 18:02:20 +08:00
28810
fe7b7e5012 - 优化 GlobalFilter 过滤器表达式 bool 解析; 2019-12-16 12:12:55 +08:00
28810
f162520202 update ForUpdate tests 2019-12-14 12:21:55 +08:00
28810
15c3ab7297 - 增加 ISelect.ForUpdate 排他更新锁(根据数据库类型的规则,见代码注释);
- 完善 SqlServer WithLock 功能,组合多种使用 | 枚举相联;
2019-12-14 11:43:17 +08:00
28810
01b31c095b - 增加 实体特性 [Column(ServerTime = DateTimeKind.Utc)] 使用数据库时间执行插入数据;
- 修复 ToList(a => new Dto { .. }) 在使用 GroupBy 之后报错的 bug;
- 修复 注释迁移到数据库,在 asp.net 4.7 无效的问题;
2019-11-25 17:30:36 +08:00
28810
e9a8ad70a1 - 增加 ICodeFirst.IsGenerateCommandParameterWithLambda 选项,开启表达式解析的命令参数化;
- 增加 ExpressionCallContext 自定义函数上下文档 DbParameter 属性;
- 修复 IncludeMany(a => a.x1.x2.Childs) 当 x1, x2 为 null 的报 null 错误;
2019-11-22 21:55:36 +08:00
28810
9f97d67cb2 - 优化 Contains 表达式解析为 where in 自动拆分,防止大于 1000 的 SQL 错误; 2019-11-20 16:06:45 +08:00
28810
1083f371a9 - 增加 IncludeMany 贪婪加载的时候可指定子表的字段,避免查询子表所有字段; 2019-11-18 03:22:34 +08:00
28810
769c1f020c - 修复 Where(a => bool && id > 0) bool 未解析正确的 bug;
> (之前大多数类似的表达都能解析,这次是一个特殊情况)
2019-11-17 21:01:49 +08:00
28810
dda7c8bc9c - 增加 AsTable 和 Repository 分表时的自动迁移分表功能;
- 增加 ICodeFirst.SyncStructure(Type entityType, string tableName) 指定表名来迁移实体;
```csharp
fsql.CodeFirst.SyncStructure(typeof(Log), "Log_1"); //迁移到 Log_1 表
fsql.CodeFirst.SyncStructure(typeof(Log), "Log_2"); //迁移到 Log_2 表
```
2019-11-13 19:57:44 +08:00
28810
21b4b0d5d3 - 增加 ISelect ToDelete/ToUpdate 方法,实现更复杂的删除/更新操作; 2019-10-30 20:35:42 +08:00
28810
db7fe82403 - 移除 IUpdate/IDelete WhereExists 方法; 2019-10-30 18:00:13 +08:00
28810
78fded3f8e - 增加 IndexAttribute 特性,自动迁移索引,以及对应的 FluentApi 方法;
- 移除 ColumnAttribute.Unique 属性设置,改为 IndexAttribute 特性设置唯一键;
2019-10-03 04:31:04 +08:00
28810
fe4874989c - 修复 AsTable 不受 UseSyncStructureToLower/ToUpper 设置的 bug;#89 2019-09-09 19:02:38 +08:00
28810
a266cdb103 - 修复 【重大 bug】 批量更新 bug,当字段中某个值为 null,其他字段也更新成了 NULL; 2019-09-06 17:42:25 +08:00
28810
2855af3a43 update test 2019-09-06 16:16:36 +08:00
28810
d9cb932fae - 优化 MapType DateTime/DateTimeOffset 类型转换互通; 2019-09-06 16:07:28 +08:00
28810
d105041858 - 优化 表达式对整数除法的处理,解析为整除; 2019-09-06 14:48:37 +08:00