db.Queryable.Includes.Select.ToList

This commit is contained in:
sunkaixuan 2023-05-04 22:56:28 +08:00
parent 4bc0f702d7
commit ff3fcccf9d

View File

@ -713,7 +713,7 @@ namespace SqlSugar
// var propertyExpr = Expression.Property(paramExpr, rightName); // var propertyExpr = Expression.Property(paramExpr, rightName);
// } // }
} }
else else if(rightValue != null)
{ {
//leftObject.GetType().GetProperty(leftName).SetValue(leftObject, rightValue); //leftObject.GetType().GetProperty(leftName).SetValue(leftObject, rightValue);
UtilMethods.SetAnonymousObjectPropertyValue(leftObject, leftName, rightValue); UtilMethods.SetAnonymousObjectPropertyValue(leftObject, leftName, rightValue);