Optimize the code

This commit is contained in:
sunkaixuan
2022-08-18 19:17:52 +08:00
parent 4b1c5e47c0
commit a1875e2167

View File

@@ -532,13 +532,13 @@ namespace SqlSugar
FieldValue = value.ObjToStringNew(),
CSharpTypeName = column.PropertyInfo.PropertyType.Name
});
if (this.Context.CurrentConnectionConfig.DbType == DbType.PostgreSQL)
{
data.Value.FieldValueConvertFunc = it =>
{
return UtilMethods.ChangeType2(it, value.GetType());
};
}
//if (this.Context.CurrentConnectionConfig.DbType == DbType.PostgreSQL)
//{
// data.Value.FieldValueConvertFunc = it =>
// {
// return UtilMethods.ChangeType2(it, value.GetType());
// };
//}
cons.ConditionalList.Add(data);
}
if (cons.HasValue())