216 Commits

Author SHA1 Message Date
28810
a4367ebc5a - 修复 DbFirst Oracle 序列值使用复杂的问题,结合 [Column(InsertValueSql = "xxx.nextval")]; 2020-03-29 18:15:39 +08:00
28810
a6eae955ed - 增加 IAdo.ConnectionString 属性返回 UseConnectionString 传入的值; 2020-03-28 15:29:39 +08:00
28810
a8eaca9e58 - 优化 ConnectionPool 提升被动连接断开的体验(会卡的可以升级); 2020-03-23 23:17:00 +08:00
28810
72781596bd - 移除 In多表表达式函数解析 #243;
- 调整 SafeObjectPool 源码移入项目;
2020-03-20 20:32:49 +08:00
28810
22a2450e05 - 增加 ISelect`1 ToDictionary 方法查询返回字典; 2020-03-20 01:52:43 +08:00
28810
c468c65ba5 - 修复 UseGenerateCommandParameterWithLambda(true) 时子语句的参数没整合到主语句;#231
- 增加 ISelect.RawJoin 方法以便实现 Outer Apply 查询;#200
2020-03-12 15:49:08 +08:00
28810
fff7925d22 - 增加 ISelect`1 AsQueryable 方法,实现将 ISelect 转换为 IQueryable 类型; 2020-03-11 18:51:56 +08:00
28810
59b9b1272b - 调整 移除对 System.ValueType 的依赖,减少版本冲突问题;(目前 FreeSql.dll 无任何公用库依赖) 2020-03-07 16:08:03 +08:00
28810
24cc8bc1da - 调整 Aop 改为 event 事件;
- 调整 Ado.AopCommandExecuting/AopCommandExecuted 到 Aop.CommandBefore/After;
- 增加 Aop.TraceBefore/After 事件;
2020-03-02 18:57:53 +08:00
28810
5cff594161 - 增加 IUpdate.SetDto 根据 dto 更新的方法;#218 2020-02-28 11:54:13 +08:00
28810
f8e18f0548 - 增加 nuget 包强签名发布 v1.2.0-preview2;#201 2020-02-18 12:21:27 +08:00
28810
cfbb143ec6 完善注释 GenerateCommandParameterWithLambda 2020-02-15 17:37:21 +08:00
28810
c64deb3d20 - 修复 GroupBy 类型转换错误;#186
- 修复 .ToList(a => new DTO(a.id)) 报 未将对象引用设置到对象的实例 问题; #187
- 修复 update语句,二元运算解析出错; #184
2020-01-19 23:53:06 +08:00
28810
255593a594 - 增加 ISelect`1.WithSql("select * from user ...") 功能; 2019-12-31 16:26:04 +08:00
28810
a92c279c72 - 修复 Ado.Query 查询字段重复时报错;#162 #165 #161 - 增加 FreeSql.Provider.MsAccess 支持 Access 数据库操作,已通过 2003/2007 版本测试; 2019-12-24 06:16:52 +08:00
28810
f5128f3308 - 增加 ISelectGrouping 分组查询总量的方法 .Count(); 2019-12-21 20:00:39 +08:00
28810
c268970c71 - 增加 IInsert.ToDataTable 方法,为 BulkCopy 操作提供数据,该文件处理了(表名、字段名、类型)映射和忽略列; 2019-12-20 21:53:44 +08:00
28810
ab1d0a2cb5 - 增加 IInsert/IUpdate BatchOptions 方法指定批量插入的设置; 2019-12-20 19:47:43 +08:00
28810
ec25ccea86 - 完善 Select`2-10 多表查询对象,增加 First(select)/ToOne(select)/First\<Dto\> 方法; 2019-12-19 13:46:11 +08:00
28810
a357ee4975 - 优化 BaseEntity 查询数据时自动 Attach; 2019-12-18 21:18:24 +08:00
28810
fe5b98509b - 增加 ISelect.ToSql 字段别名设置,默认为 AsIndex,可改为 AsProperty;#158 2019-12-17 22:08:12 +08:00
28810
204b6ecd98 - 优化 AsTable 分表查询 Any/Min/Max/Avg/Sum/Count 的处理;#158
- 调整 Avg 方法返回值为 double,Sum 方法返回值为 decimal;
2019-12-17 13:35:13 +08:00
28810
e1e3e4a3b2 - 增加 Where In 表达式解析;
- 增加 FreeSqlBuilder.UseConnectionFactory 自定义数据库连接对象的创建方法;
2019-12-17 01:39:53 +08:00
28810
15c3ab7297 - 增加 ISelect.ForUpdate 排他更新锁(根据数据库类型的规则,见代码注释);
- 完善 SqlServer WithLock 功能,组合多种使用 | 枚举相联;
2019-12-14 11:43:17 +08:00
28810
dfb4662d86 - 补充 同线程时间 fsql.Transaction 事务等级参数的传入; 2019-12-14 01:34:38 +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
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
1083f371a9 - 增加 IncludeMany 贪婪加载的时候可指定子表的字段,避免查询子表所有字段; 2019-11-18 03:22:34 +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
35a663f5ef 补充 ToList 注释 2019-11-06 16:45:29 +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
db7fe82403 - 移除 IUpdate/IDelete WhereExists 方法; 2019-10-30 18:00:13 +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
615023f012 - 修复 postgresql 12 移除 pg_attrdef.adsrc 列,导致 CodeFirst 方法失败的 bug;
- 增加 Aop.ConfigEntity 属性 ModifyIndexResult 现实 IndexAttribute 的设置;
2019-10-14 13:21:47 +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
53d4332bc5 - 增加 List\<T1\> 扩展方法 IncludeMany,实现从已知的内存 List 数据,进行和 ISelect.IncludeMany 相同功能的贪婪加载; 2019-10-07 21:14:18 +08:00
28810
2b72c849d9 v0.10.7, - 调整 Insert<T1>(IEnumerable<T1> source) 参数类型改成了 List; 2019-10-06 12:32:32 +08:00
28810
78fded3f8e - 增加 IndexAttribute 特性,自动迁移索引,以及对应的 FluentApi 方法;
- 移除 ColumnAttribute.Unique 属性设置,改为 IndexAttribute 特性设置唯一键;
2019-10-03 04:31:04 +08:00
28810
5acf0b9eb4 - 优化 IUpdate.IgnoreColumns/UpdateColumns 可对属性名,或字段名做设置;#95 2019-09-23 21:58:30 +08:00
28810
564e1951d8 - 增加 ISelect.ToChunk 实现分块查询数据,减少数据过大时内存占用; 2019-09-10 16:01:01 +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
bcc154ee43 - 增加 AsTable 多次,可查询分表后的多个子表记录,以 UNION ALL 形式执行; 2019-09-09 18:30:55 +08:00
28810
baf6d768a4 - 修复 Aop.AuditValue 与 FreeSql.Repository 主键状态管理的冲突; 2019-08-31 03:00:17 +08:00
28810
2db48bbcf9 - 增加 ISelect.First<Dto>() 方法; 2019-08-29 14:55:42 +08:00
28810
33612bd8bd - 增加 Aop.AuditValue 事件,在插入/更新数据时审计属性值; 2019-08-25 18:19:31 +08:00
28810
b57d35ae9b - 增加 Aop.AuditValue 事件,在插入/更新数据时审计属性值; 2019-08-25 18:13:02 +08:00
28810
6c0bdc0e9e - 补充 ISelect`T1...T10 LeftJoin/InnerJoin/RightJoin 多参数方法; 2019-08-06 10:32:36 +08:00