mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 17:20:49 +08:00 
			
		
		
		
	- 修复 子查询使用非表达式方法时,参数无效的 bug;
This commit is contained in:
		@@ -543,7 +543,7 @@ namespace FreeSql.Internal {
 | 
			
		||||
													fsqltable1SetAlias = true;
 | 
			
		||||
												}
 | 
			
		||||
											}
 | 
			
		||||
											args[a] = argExp;
 | 
			
		||||
											args[a] = argExp ?? Expression.Lambda(arg3Exp).Compile().DynamicInvoke();
 | 
			
		||||
											//if (args[a] == null) ExpressionLambdaToSql(call3Exp.Arguments[a], fsqltables, null, null, SelectTableInfoType.From, true);
 | 
			
		||||
										}
 | 
			
		||||
									}
 | 
			
		||||
 
 | 
			
		||||
@@ -513,7 +513,7 @@ namespace FreeSql.Internal {
 | 
			
		||||
								break;
 | 
			
		||||
							}
 | 
			
		||||
							if (trycol == null) {
 | 
			
		||||
								nvref.Exception = new Exception($"【OneToMany】导航属性 {trytbTypeName}.{pnv.Name} 在 {tbref.CsName} 中没有找到对应的字段,如:{findtrytb}{findtrytbPkCsName}、{findtrytb}_{findtrytbPkCsName}" + (refprop == null ? "" : $"、{refprop.Name}{findtrytbPkCsName}、{refprop.Name}_{findtrytbPkCsName}"));
 | 
			
		||||
								nvref.Exception = new Exception($"【OneToMany】导航属性 {trytbTypeName}.{pnv.Name} 在 {tbref.CsName} 中没有找到对应的字段,如:{findtrytb}{findtrytbPkCsName}、{findtrytb}_{findtrytbPkCsName}" + (refprop == null ? "" : $"、{refprop.Name}{findtrytbPkCsName}、{refprop.Name}_{findtrytbPkCsName}。或者使用 [Navigate] 特性指定关系映射。"));
 | 
			
		||||
								trytb.AddOrUpdateTableRef(pnv.Name, nvref);
 | 
			
		||||
								//if (isLazy) throw nvref.Exception;
 | 
			
		||||
								break;
 | 
			
		||||
@@ -640,7 +640,7 @@ namespace FreeSql.Internal {
 | 
			
		||||
							break;
 | 
			
		||||
						}
 | 
			
		||||
						if (trycol == null) {
 | 
			
		||||
							nvref.Exception = new Exception($"导航属性 {trytbTypeName}.{pnv.Name} 没有找到对应的字段,如:{pnv.Name}{findtbrefPkCsName}、{pnv.Name}_{findtbrefPkCsName}");
 | 
			
		||||
							nvref.Exception = new Exception($"导航属性 {trytbTypeName}.{pnv.Name} 没有找到对应的字段,如:{pnv.Name}{findtbrefPkCsName}、{pnv.Name}_{findtbrefPkCsName}。或者使用 [Navigate] 特性指定关系映射。");
 | 
			
		||||
							trytb.AddOrUpdateTableRef(pnv.Name, nvref);
 | 
			
		||||
							//if (isLazy) throw nvref.Exception;
 | 
			
		||||
							break;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user