mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 09:15:27 +08:00 
			
		
		
		
	愚人节版本
This commit is contained in:
		@@ -55,5 +55,12 @@
 | 
				
			|||||||
			_column.IsIgnore = value;
 | 
								_column.IsIgnore = value;
 | 
				
			||||||
			return this;
 | 
								return this;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
							/// <summary>
 | 
				
			||||||
 | 
							/// 乐观锁
 | 
				
			||||||
 | 
							/// </summary>
 | 
				
			||||||
 | 
							public ColumnFluent IsVersion(bool value) {
 | 
				
			||||||
 | 
								_column.IsVersion = value;
 | 
				
			||||||
 | 
								return this;
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -53,6 +53,7 @@ namespace FreeSql.Extensions.EntityUtil {
 | 
				
			|||||||
							}.Where(c => c != null).ToArray()
 | 
												}.Where(c => c != null).ToArray()
 | 
				
			||||||
						);
 | 
											);
 | 
				
			||||||
					}
 | 
										}
 | 
				
			||||||
 | 
										if (pks[a].Attribute.IsIdentity || isguid || pks[a].CsType == typeof(string) || pks[a].CsType.IsNullableType()) {
 | 
				
			||||||
						exps.Add(
 | 
											exps.Add(
 | 
				
			||||||
							Expression.IfThen(
 | 
												Expression.IfThen(
 | 
				
			||||||
								Expression.IsFalse(var3IsNull),
 | 
													Expression.IsFalse(var3IsNull),
 | 
				
			||||||
@@ -70,6 +71,21 @@ namespace FreeSql.Extensions.EntityUtil {
 | 
				
			|||||||
								)
 | 
													)
 | 
				
			||||||
							)
 | 
												)
 | 
				
			||||||
						);
 | 
											);
 | 
				
			||||||
 | 
										} else {
 | 
				
			||||||
 | 
											exps.Add(
 | 
				
			||||||
 | 
												Expression.IfThen(
 | 
				
			||||||
 | 
													Expression.IsFalse(var3IsNull),
 | 
				
			||||||
 | 
													Expression.Block(
 | 
				
			||||||
 | 
														new Expression[]{
 | 
				
			||||||
 | 
															a > 0 ? Expression.Call(var2Sb, MethodStringBuilderAppend, Expression.Constant(splitString)) : null,
 | 
				
			||||||
 | 
															Expression.Call(var2Sb, MethodStringBuilderAppend,
 | 
				
			||||||
 | 
																Expression.Convert(Expression.MakeMemberAccess(var1Parm, _table.Properties[pks[a].CsName]), typeof(object))
 | 
				
			||||||
 | 
															)
 | 
				
			||||||
 | 
														}.Where(c => c != null).ToArray()
 | 
				
			||||||
 | 
													)
 | 
				
			||||||
 | 
												)
 | 
				
			||||||
 | 
											);
 | 
				
			||||||
 | 
										}
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
				exps.Add(
 | 
									exps.Add(
 | 
				
			||||||
					Expression.IfThen(
 | 
										Expression.IfThen(
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -4,7 +4,7 @@ FreeSql 是一个功能强大的 .NETStandard 库,用于对象关系映射程
 | 
				
			|||||||
|--------------|  ------- |  ---- |
 | 
					|--------------|  ------- |  ---- |
 | 
				
			||||||
| FreeSql | [](https://www.nuget.org/packages/FreeSql) | [](https://www.nuget.org/stats/packages/FreeSql?groupby=Version) |
 | 
					| FreeSql | [](https://www.nuget.org/packages/FreeSql) | [](https://www.nuget.org/stats/packages/FreeSql?groupby=Version) |
 | 
				
			||||||
| [FreeSql.Repository](https://github.com/2881099/FreeSql/wiki/Repository) | [](https://www.nuget.org/packages/FreeSql.Repository) | [](https://www.nuget.org/stats/packages/FreeSql.Repository?groupby=Version) |
 | 
					| [FreeSql.Repository](https://github.com/2881099/FreeSql/wiki/Repository) | [](https://www.nuget.org/packages/FreeSql.Repository) | [](https://www.nuget.org/stats/packages/FreeSql.Repository?groupby=Version) |
 | 
				
			||||||
| [FreeSql.DbContext](https://github.com/2881099/FreeSql/wiki/DbContext) | [](https://www.nuget.org/packages/FreeSql.DbContext) | [](https://www.nuget.org/stats/packages/FreeSql.DbContext?groupby=Version) |
 | 
					| [FreeSql.DbContext](https://github.com/2881099/FreeSql.DbContext) | [](https://www.nuget.org/packages/FreeSql.DbContext) | [](https://www.nuget.org/stats/packages/FreeSql.DbContext?groupby=Version) |
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# 特性
 | 
					# 特性
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user