48 Commits

Author SHA1 Message Date
28810
d42b2fc2b8 - 增加 ExpressionCallAttribute 特性,实现表达式函数自定义解析; 2019-11-20 13:32:49 +08:00
28810
1083f371a9 - 增加 IncludeMany 贪婪加载的时候可指定子表的字段,避免查询子表所有字段; 2019-11-18 03:22:34 +08:00
28810
7c42c67797 - 修复 MapType 属性的表达式解析 数组.Contains 得到是映射之前的值 bug;
- 修复 MapType 属性 与 IncludeMany 变异功能未映射处理的 bug;
2019-11-17 17:14:00 +08:00
28810
8a9a50ecb7 - 优化 实体类重写属性 new 如果类型与基类不一致,无法使用的问题; 2019-11-10 12:18:16 +08:00
28810
5ce037d316 修正内部命名 2019-11-08 13:03:54 +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
cf0dfae545 - 修复 FreeSql.DbContext/FreeSql.Repository 当主键为 Guid? 可空类型时,发生参数错误;#105 #106
> System.ArgumentException:“Expression of type 'System.Guid' cannot be used for assignment to type 'System.Nullable`1[System.Guid]'”
2019-10-08 15:43:34 +08:00
28810
53d4332bc5 - 增加 List\<T1\> 扩展方法 IncludeMany,实现从已知的内存 List 数据,进行和 ISelect.IncludeMany 相同功能的贪婪加载; 2019-10-07 21:14:18 +08:00
28810
d51aef2aa9 add test 2019-09-06 13:29:15 +08:00
2881099
b0314f643e ## v0.8.7
- 修复 导航关系多属性时的错序 bug;
- 修复 延时属性的类,没有设置Namespace时的 bug;
2019-08-16 11:09:48 +08:00
28810
8a11e9c794 - 增加 IFreeSql.Select`T1...T10 的多表查询扩展方法; 2019-07-31 11:24:41 +08:00
28810
256963907e - 优化 表达式中不能使用 c# 函数的问题,
> 如:where(a => HttpContext.Session.GetString("UserID") == a.UserId)
2019-07-29 10:27:39 +08:00
28810
42aa700b44 - 修复 LambadaExpressionExtensions 扩展方法 And/Or 当存在二级 lambada 时替换错误的 bug;
> 如:where.Add(a => a.Tags.Any(b => ...)),b 替换错误
2019-07-10 16:12:49 +08:00
28810
f8c3608fda 源代码改用vs默认格式化 2019-06-27 09:40:35 +08:00
28810
3e8fed416d - 增加 LambdaExpression 扩展方法 And/Or/Not 快速拼接表达式; 2019-06-20 17:56:07 +08:00
28810
451b6c9769 - 增加 NavigateAttribute 配置导航关系;
- 修复 LinqToSql 方法,开启自动迁移时,迁移了无关类的 bug;
- 修复 Oracle DbFirst date(7) 类型未处理的 bug;#57
- 修复 AsSelect().Any() 未给其他条件时,产生 null bug;
- 增加 FreeSql.Extensions.LazyLoading 对 .net 4.5 的支持;
- 优化 MySql CodeFirst 增加 DateTime 迁移后,默认值为 0000-00-00 导致读取失败的 bug;
- 优化 LazyLoading 友好错误提示;
2019-05-31 20:30:09 +08:00
28810
f8e897e201 拆分 FreeSql 按需引用 2019-05-28 21:32:54 +08:00
2881099
c6db0f7dab 注释 MapEntityValue 对非字段属性的赋值 2019-05-18 01:58:59 +08:00
28810
4481064f4e Include 贪婪加载第一版,已通过集合的导航数据加载,包括 OneToMany/ManyToMany 2019-05-11 06:17:09 +08:00
28810
22a6c3d93e - 调整 命名空间,归纳 FreeSql.Interface; 2019-05-07 20:20:38 +08:00
28810
59b1b7220d - 增加 linq to sql 的查询语法,以及单元测试; 2019-05-07 19:09:19 +08:00
28810
d49be984bd 配置 xmlDoc 2019-04-28 15:46:37 +08:00
28810
5bb90a974b - 补充 IDbFirst GetTableByDatabase 返回 uk/fk/index 名称,以便迁移; 2019-04-26 18:10:51 +08:00
28810
24df5d6107 - 增加 Column.MapType 类型映射,可将 enum 映射为 int/string 等; 2019-04-26 06:30:30 +08:00
28810
e3c0f615f9 修复 SqlServer 工作单元 bug #23
需要同时设置 SqlCommand.Connection + Transaction
2019-04-19 13:50:19 +08:00
28810
b33536e4df - 补充 实现表达式转换类型的解析,如:Select<object>().Where(a => (a as 实体类型).Id == 0);
- 完善 ExpressionTree 基础数据类型 TryParse 使用与单元测试;
- 优化 ManyToMany 中间实体未配置主键时,自动配置联合主键;
- 修复 Expression.And 的使用问题;
2019-04-17 22:22:15 +08:00
28810
bada8ad3cc ## v0.5.1(五一版)
- 增加 ISelect/IInsert/IUpdate/IDelete.AsType 实现弱类型curd,如:Select<object>().AsType(实体类型);
- 补充 ISelect.From<T2>;
- 补充 ExpressionTree 单元测试;
- 优化 ToList(a => new Dto()),会按优先级查询 Join 实体属性;
- 补充 IDelete/ISelect/IUpdate WhereDynamic 方法,实现 dywhere 条件;
- 修复 WhereObject 内部方法,当开启 Lazy 延时属性时,并且传递实体查询时条件无效;
2019-04-17 00:52:02 +08:00
28810
f011d51f3b ## v0.4.16.1 2019-04-16 22:54:55 +08:00
28810
0d2191ca85 ## v0.4.16
- 增加 ISelect.AsType 实现弱类型查询,配合 Select<object>().AsType(实体类型);
- 补充 ISelect.From<T2>;
- 补充 ExpressionTree 单元测试;
- 优化 ToList(a => new Dto()),会按优先级查询 Join 实体属性;
2019-04-16 22:48:11 +08:00
28810
2714ff360d ## v0.4.13
- 优化 MySql 日期类型精确至毫秒;
- 增加 Distinct 查询前去重数据;
2019-04-12 20:02:58 +08:00
28810
8b49dd8f83 无影响的 bug 2019-04-04 18:13:18 +08:00
28810
da1c6cd4f0 愚人节版本 2019-04-01 12:17:59 +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
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
23d5d33bdd - 增加 IEnumerable<TEntity> 扩展方法 AsSelect 2019-03-15 15:03:08 +08:00
28810
abb7402b36 - 增加 ISelect.ToDataTable 系列方法;
- 增加 无参数化命令执行,可配置全局 ICodeFirst.IsNoneCommandParameter、或临时 IInsert/IUpdate.NoneParameter() 便于调试;
- 关闭 自动同步结构功能,避免线上环境误操作;
- 优化 IInsert 批量插入容易导致 values 过多、或参数化过多的问题,5个数据库均已优化;
2019-03-14 02:24:15 +08:00
28810
1fa6c9bfc4 - 增加 ISelect.ToDataTable 系列方法;
- 增加 无参数化命令执行,便于调试;
2019-03-13 18:24:54 +08:00
28810
2ca55c3d15 arrange 2019-02-15 17:49:01 +08:00
28810
b9a9106f86 lazy延时属性父子关系的1v多类型判断修正,解决 int? != int 的 bug 2019-01-26 10:32:53 +08:00
28810
a6b2b80d44 代码调整 2019-01-25 23:14:50 +08:00
28810
74df67fc13 v0.0.11 修复IAdo.Query直接查询sql的bug 2019-01-25 20:23:14 +08:00
28810
b83b86f528 update wiki 2019-01-23 16:41:11 +08:00
28810
4bf8d60361 ICodeFirst 增加 ConfigEntity 方法,现实干净实体无特性的需求 2019-01-22 12:56:45 +08:00
28810
27bc603d46 完成 sqlite codefirst curd expression 开发与测试 2019-01-09 15:50:43 +08:00
28810
3d132e4f52 sqlite3 codefirst 适配完成,待测试 2019-01-08 22:19:40 +08:00
28810
5eb451fc76 pgsql DbFirst 完成未测试;oracle 适配进行中 2019-01-04 19:20:37 +08:00
28810
9b5e34032c pgsql/mysql/sqlserver适配 2018-12-18 20:09:52 +08:00