mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-27 03:09:34 +08:00
rename
This commit is contained in:
@@ -11,7 +11,7 @@ namespace SqlSugar
|
|||||||
internal object MethodInfos { get; set; }
|
internal object MethodInfos { get; set; }
|
||||||
internal SqlSugarProvider Context { 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 type = MethodInfos.GetType().GetGenericArguments()[0];
|
||||||
var entityInfo = this.Context.EntityMaintenance.GetEntityInfo(type);
|
var entityInfo = this.Context.EntityMaintenance.GetEntityInfo(type);
|
||||||
@@ -20,7 +20,7 @@ namespace SqlSugar
|
|||||||
Expression exp = UtilMethods.GetIncludeExpression(navMemberName, entityInfo, out properyItemType, out isList);
|
Expression exp = UtilMethods.GetIncludeExpression(navMemberName, entityInfo, out properyItemType, out isList);
|
||||||
var method = this.MethodInfos.GetType().GetMyMethod("Include", 2, isList)
|
var method = this.MethodInfos.GetType().GetMyMethod("Include", 2, isList)
|
||||||
.MakeGenericMethod(properyItemType);
|
.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;
|
this.MethodInfos = obj;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user