52 Commits

Author SHA1 Message Date
2881099
821076035a - 修复 SqlServer WithSql + WithLock bug; 2022-11-08 16:54:46 +08:00
2881099
f1562a80e7 - 完善 SqlServer WithLock + WithIndex 扩展方法; 2022-11-06 20:33:35 +08:00
2881099
91d6864388 - 优化 IncludeByPropertyName + AsType; 2022-08-23 17:17:37 +08:00
2881099
2450324f28 - 增加 IncludeByPropertyName 重载 then 参数;#1214 2022-08-12 12:07:17 +08:00
2881099
4c2fab706c - 优化 子查询别名为 a 的情况;#1201 2022-08-02 18:55:18 +08:00
2881099
50b7d5307d - 修复 SqlServer2005/2008 Skip 问题(未设置 Take 时); 2022-07-14 14:01:40 +08:00
2881099
1b0e94a9b2 - 修复 Dto 映射查询 Negate 表达式解析 bug; 2022-06-29 08:44:22 +08:00
2881099
aac99d6266 - 修复 SqlServer WithLock 子查询不生效的 bug;#1159 2022-06-21 12:40:14 +08:00
2881099
8263379720 add min/max DateTime IsNull Tests #1140 2022-06-02 22:02:16 +08:00
2881099
1b84a00696 - 优化 子查询 sum/min/max/avg 默认加 isnull 防止为 NULL 情况; 2022-05-10 09:28:04 +08:00
2881099
0ecab32f34 - 调整 DbSet/Repository DeleteCascadeByDatabase/Delete 区别于数据库/内存的级联删除;#609 2022-05-04 22:38:17 +08:00
2881099
b0ac5a8739 - 调整 增加支持 OneToOne 级联保存,EnableAddOrUpdateNavigateList 改名为 EnableAddOrUpdateNavigate; 2022-05-04 15:49:05 +08:00
2881099
1b289c7d08 - 修复 8c72d540251c0559e04a25e7d067a2e6eeadbe84 ToList<Dto> jsonb 映射,影响 v3.2.600 ; 2022-04-28 13:00:24 +08:00
2881099
f76a46f383 - 优化 导航集合属性访问,可省略 AsSelect;#15 #300 #362 #509 #698 #644 #903 2022-04-27 20:27:24 +08:00
2881099
3d5ca9bc7e - 优化 pgsql jsonb 映射,支持 List,mysql limit in 子查询; 2021-11-02 00:38:06 +08:00
2881099
d93fd91eed - 修复 SqlServer 支持 Chinese_PRC_CS_AS 区分小大写;#684 2021-02-09 17:17:31 +08:00
2881099
cd6fd2708e - 增加 ISelect.OrderByRandom() 随机排序适配; 2020-12-24 01:11:28 +08:00
28810
fd8ed29c02 - 修复 子查询 Count/Max/Min/Avg/Sum 使用了 Limit(1) 的 bug;#462 2020-09-16 13:54:04 +08:00
28810
e4b51e5d20 - 增加 ISelect<2..10> 多表 WithSql 方法 #413; 2020-08-14 03:06:11 +08:00
28810
5f645f194f - 完善 ISelect<T>.WithSql 方法,支持传入参数化 #413; 2020-08-13 10:25:01 +08:00
28810
7efe02f69c - 优化 GroupBy ToList 中可以直接使用 a.Key; 2020-08-07 00:00:39 +08:00
28810
18cabd22b9 - 完善 AsTreeCte + ToUpdate/ToDelete 实现树所有子节点删除或更新; 2020-08-04 20:54:15 +08:00
28810
7471df5924 内部 SQL 格式优化 2020-07-18 13:50:26 +08:00
28810
9cd3d99812 - 防止 Object 类型也执行迁移; 2020-07-16 18:13:49 +08:00
28810
bc77869cf7 - 修复 多对多导航属性 AsSelect() 无法使用 .Count() 的问题;#362 2020-07-06 16:10:36 +08:00
28810
838dd83e47 - 增加 ISelect.AsTreeCte() 递归查询树表(向下或向下); 2020-06-27 17:01:51 +08:00
28810
4cde2a3280 - 增加 ISelect.AsCteTree() 递归查询树表所有子记录; 2020-06-27 04:21:00 +08:00
28810
dc8f575b18 - 修复 sqlserver 解析 cast(.. as nvarchar) 截断长度 30 的问题;#335 2020-06-26 07:58:09 +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
f3593a321f - 增加 FreeSqlBuilder UseNameConvert 方法,类名、属性名都生效;
- 调整 FreeSqlBuilder,准备移除 UseEntityPropertyNameConvert/UseSyncStructureToLower/UseSyncStructureToUpper 方法;#260
2020-03-31 07:02:42 +08:00
28810
dc625218d6 - 修复 ToTreeList 的问题 #255 2020-03-27 18:41:11 +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
a5e6573851 - 增加 Pgsql JToken/JObject/JArray 索引访问的表达式解析;
- 增加 object.Equals 表达式解析;
2020-03-19 22:46:40 +08:00
28810
c64deb3d20 - 修复 GroupBy 类型转换错误;#186
- 修复 .ToList(a => new DTO(a.id)) 报 未将对象引用设置到对象的实例 问题; #187
- 修复 update语句,二元运算解析出错; #184
2020-01-19 23:53:06 +08:00
28810
f5128f3308 - 增加 ISelectGrouping 分组查询总量的方法 .Count(); 2019-12-21 20:00:39 +08:00
28810
969e690682 - 优化 ISelect.Count() 之前使用了 OrderBy 会产生的 SQL 语法问题; 2019-12-19 15:50:42 +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
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
d6010b4b51 - 修复 SqlServer DbFirst、CodeFirst 查询实体表的列信息错误,当设置了表/列多个扩展属性时发生;
- 修复 SqlServer2005 CodeFirst 迁移时,不支持 SET (LOCK_ESCALATION TABLE) 的错误(已做适配);
- 修复 SqlServer2005 批量插入SQL语法错误,不支持 Values(),()(已做适配);
- 完善 SqlServer2005 环境跑通了所有单元测试;
2019-11-19 00:38:34 +08:00
28810
1083f371a9 - 增加 IncludeMany 贪婪加载的时候可指定子表的字段,避免查询子表所有字段; 2019-11-18 03:22:34 +08:00
28810
0c341360b7 - 增加 SqlServer ISelect.WithLock 扩展方法,实现 with(nolock) 查询;
- 增加 SqlServer IFreeSql.SetGlobalSelectWithLock 扩展方法,实现全局设置 with(nock) 查询;
- 移除 Aop.ToList;
- 移除 Aop.Where;
2019-11-06 13:58:19 +08:00
28810
21b4b0d5d3 - 增加 ISelect ToDelete/ToUpdate 方法,实现更复杂的删除/更新操作; 2019-10-30 20:35:42 +08:00
28810
de28c38d70 - 增加 连接字符串错误时的友好提示; 2019-07-18 11:30:14 +08:00
28810
87c9ccf5c3 - 增加 子查询函数 First、Count、Min、Max、Sum、Avg 的支持; 2019-07-09 16:46:11 +08:00