mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Synchronization code
This commit is contained in:
parent
73bda90171
commit
196038597f
@ -404,7 +404,7 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
FieldName =item,
|
FieldName =item,
|
||||||
ConditionalType = ConditionalType.Equal,
|
ConditionalType = ConditionalType.Equal,
|
||||||
FieldValue = model[item].ObjToString(),
|
FieldValue = model[item].ObjToStringNoTrim(),
|
||||||
CSharpTypeName = model[item]==null?null : model[item].GetType().Name
|
CSharpTypeName = model[item]==null?null : model[item].GetType().Name
|
||||||
}));
|
}));
|
||||||
i++;
|
i++;
|
||||||
|
@ -772,6 +772,10 @@ namespace SqlSugar
|
|||||||
var leftName = item.Key;
|
var leftName = item.Key;
|
||||||
if (anyParent)
|
if (anyParent)
|
||||||
{
|
{
|
||||||
|
if (rightValue == null)
|
||||||
|
{
|
||||||
|
rightValue = UtilMethods.GetDefaultValue(rightColumnInfo.PropertyInfo.PropertyType);
|
||||||
|
}
|
||||||
rightValue = rightValue.GetType().GetProperty(item.Value.Name).GetValue(rightValue);
|
rightValue = rightValue.GetType().GetProperty(item.Value.Name).GetValue(rightValue);
|
||||||
}
|
}
|
||||||
//// var rightColumn=col
|
//// var rightColumn=col
|
||||||
|
Loading…
Reference in New Issue
Block a user