28810 
							
						 
					 
					
						
						
							
						
						ecfac8843e 
					 
					
						
						
							
							update  
						
						 
						
						
						
						
					 
					
						2019-12-01 12:56:05 +08:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								28810 
							
						 
					 
					
						
						
							
						
						defab45624 
					 
					
						
						
							
							- 完善 ExpressionCall 自定义表达式功能;  
						
						 
						
						
						
						
					 
					
						2019-11-23 19:02:38 +08:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								28810 
							
						 
					 
					
						
						
							
						
						26d1d961b8 
					 
					
						
						
							
							- 禁止 Contains 表达式元素参数化  
						
						 
						
						
						
						
					 
					
						2019-11-22 23:14:32 +08:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								28810 
							
						 
					 
					
						
						
							
						
						4859dc9741 
					 
					
						
						
							
							Revert "- 增加 UnitOfWork 静态属性 DebugBeingUsed,用于生产环境监视正在使用中的事务;"  
						
						 
						
						... 
						
						
						
						This reverts commit af9084e9a0 . 
						
						
					 
					
						2019-11-21 22:04:43 +08:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								28810 
							
						 
					 
					
						
						
							
						
						af9084e9a0 
					 
					
						
						
							
							- 增加 UnitOfWork 静态属性 DebugBeingUsed,用于生产环境监视正在使用中的事务;  
						
						 
						
						
						
						
					 
					
						2019-11-21 22:04:15 +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 
							
						 
					 
					
						
						
							
						
						91f0bb92a1 
					 
					
						
						
							
							## v0.11.22  
						
						 
						
						
						
						
					 
					
						2019-11-20 03:40:14 +08:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								28810 
							
						 
					 
					
						
						
							
						
						efdc7c8c5d 
					 
					
						
						
							
							- 兼容 SqlServer varchar/nvarchar 表达式解析,分别解析为:N'' 和 '';  
						
						 
						
						
						
						
					 
					
						2019-11-20 03:34:55 +08:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								28810 
							
						 
					 
					
						
						
							
						
						b338efc8a2 
					 
					
						
						
							
							- 增加 MySql 特有功能 Insert Ignore Into;  
						
						 
						
						
						
						
					 
					
						2019-11-19 12:14:56 +08:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								28810 
							
						 
					 
					
						
						
							
						
						769c1f020c 
					 
					
						
						
							
							- 修复 Where(a => bool && id > 0) bool 未解析正确的 bug;  
						
						 
						
						... 
						
						
						
						> (之前大多数类似的表达都能解析,这次是一个特殊情况) 
						
						
					 
					
						2019-11-17 21:01:49 +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 
							
						 
					 
					
						
						
							
						
						0f7dd75e64 
					 
					
						
						
							
							## v0.11.15  
						
						 
						
						
						
						
					 
					
						2019-11-16 00:16:18 +08:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								28810 
							
						 
					 
					
						
						
							
						
						6a606a82af 
					 
					
						
						
							
							## v0.11.12  #119  
						
						 
						
						
						
						
					 
					
						2019-11-13 20:25:43 +08:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								28810 
							
						 
					 
					
						
						
							
						
						b5efb387bd 
					 
					
						
						
							
							- 完善 所有参数化 object parms 可使用 IDictionary 类型传入;  
						
						 
						
						
						
						
					 
					
						2019-11-13 20:21: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 
							
						 
					 
					
						
						
							
						
						be77060ea8 
					 
					
						
						
							
							- 增加 MySql 特有功能 On Duplicate Key Update 功能;  
						
						 
						
						
						
						
					 
					
						2019-11-11 22:08:21 +08:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								28810 
							
						 
					 
					
						
						
							
						
						8a9a50ecb7 
					 
					
						
						
							
							- 优化 实体类重写属性 new 如果类型与基类不一致,无法使用的问题;  
						
						 
						
						
						
						
					 
					
						2019-11-10 12:18:16 +08:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								28810 
							
						 
					 
					
						
						
							
						
						8cc5a682da 
					 
					
						
						
							
							- 增加 FreeSql.Provider.Sqlite 对 Xamarin 环境下的适配;  
						
						 
						
						
						
						
					 
					
						2019-11-07 12:22:01 +08:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								28810 
							
						 
					 
					
						
						
							
						
						28dfd78260 
					 
					
						
						
							
							## v0.11.7  
						
						 
						
						
						
						
					 
					
						2019-11-06 14:00:50 +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 
							
						 
					 
					
						
						
							
						
						a18041e69f 
					 
					
						
						
							
							## v0.11.6  
						
						 
						
						
						
						
					 
					
						2019-11-04 13:03:36 +08:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								28810 
							
						 
					 
					
						
						
							
						
						ed2a1e3bd3 
					 
					
						
						
							
							- 调整 ToList(a => new Dto { id = 1, title = a.xx.Title}),之前只映射 id、title,现在是先映射 Dto 所有属性,再映射 id、title;  
						
						 
						
						
						
						
					 
					
						2019-11-04 13:01:52 +08:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								28810 
							
						 
					 
					
						
						
							
						
						25d584ca39 
					 
					
						
						
							
							FreeSql.DbContext 小版本 v0.11.4.2  
						
						 
						
						
						
						
					 
					
						2019-10-31 13:28:04 +08:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								28810 
							
						 
					 
					
						
						
							
						
						21b4b0d5d3 
					 
					
						
						
							
							- 增加 ISelect ToDelete/ToUpdate 方法,实现更复杂的删除/更新操作;  
						
						 
						
						
						
						
					 
					
						2019-10-30 20:35:42 +08:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								28810 
							
						 
					 
					
						
						
							
						
						687db9ed71 
					 
					
						
						
							
							## v0.11.3  
						
						 
						
						
						
						
					 
					
						2019-10-29 09:57:21 +08:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								28810 
							
						 
					 
					
						
						
							
						
						97351a4e6e 
					 
					
						
						
							
							- 优化 Aop.AuditValue 审计过的值,IUpdate.UpdateColumns 即使不指定该列也会更新;  
						
						 
						
						
						
						
					 
					
						2019-10-29 09:55:54 +08:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								28810 
							
						 
					 
					
						
						
							
						
						b97156b482 
					 
					
						
						
							
							- 增加 IFreeSql.GlobalFilter 全局过滤器;  
						
						 
						
						... 
						
						
						
						- 移除 TableAttribute.SelectFilter 功能; 
						
						
					 
					
						2019-10-24 02:17:22 +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 
							
						 
					 
					
						
						
							
						
						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 
							
						 
					 
					
						
						
							
						
						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 
							
						 
					 
					
						
						
							
						
						fc84f68f3a 
					 
					
						
						
							
							- 增加 UnitOfWork.Current 静态属性,AsyncLocal 实现 [NETStandard 2.0];  
						
						 
						
						
						
						
					 
					
						2019-07-25 16:45:07 +08:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								28810 
							
						 
					 
					
						
						
							
						
						611c066481 
					 
					
						
						
							
							- 合并 FreeSql.DbContext 项目至 FreeSql 维护;  
						
						 
						
						
						
						
					 
					
						2019-06-26 10:09:26 +08:00