Synchronization code

This commit is contained in:
sunkaixuan 2024-03-07 01:24:22 +08:00
parent 78da0e0c36
commit e6db02eb07

View File

@ -818,6 +818,10 @@ namespace SqlSugar
{
propertyInfo.SetValue(addItem, new Guid(kv.Value.ToString()));
}
else if (UtilMethods.GetUnderType(propertyInfo.PropertyType) == typeof(int) && kv.Value is long)
{
propertyInfo.SetValue(addItem, Convert.ToInt32(kv.Value));
}
else
{
propertyInfo.SetValue(addItem, kv.Value);