This commit is contained in:
sunkaixuan 2024-05-08 16:47:47 +08:00
parent db2f1ea7a2
commit 274dd64131

View File

@ -11,7 +11,7 @@ namespace SqlSugar
internal object MethodInfos { get; set; }
internal SqlSugarProvider Context { get; set; }
public InsertNavMethodInfo IncludeByNameString(string navMemberName, InsertNavRootOptions updateNavOptions = null)
public InsertNavMethodInfo IncludeByNameString(string navMemberName, InsertNavRootOptions insertNavOptions = null)
{
var type = MethodInfos.GetType().GetGenericArguments()[0];
var entityInfo = this.Context.EntityMaintenance.GetEntityInfo(type);
@ -20,7 +20,7 @@ namespace SqlSugar
Expression exp = UtilMethods.GetIncludeExpression(navMemberName, entityInfo, out properyItemType, out isList);
var method = this.MethodInfos.GetType().GetMyMethod("Include", 2, isList)
.MakeGenericMethod(properyItemType);
var obj = method.Invoke(this.MethodInfos, new object[] { exp, updateNavOptions });
var obj = method.Invoke(this.MethodInfos, new object[] { exp, insertNavOptions });
this.MethodInfos = obj;
return this;
}