mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-11-08 18:34:55 +08:00
Update db.WhereClass
This commit is contained in:
@@ -395,12 +395,20 @@ namespace SqlSugar
|
||||
}
|
||||
|
||||
}
|
||||
cons.ConditionalList.Add(new KeyValuePair<WhereType, ConditionalModel>(WhereType, new ConditionalModel()
|
||||
var data = new KeyValuePair<WhereType, ConditionalModel>(WhereType, new ConditionalModel()
|
||||
{
|
||||
ConditionalType = ConditionalType.Equal,
|
||||
FieldName = column.DbColumnName,
|
||||
FieldValue = value.ObjToString()
|
||||
}));
|
||||
});
|
||||
cons.ConditionalList.Add(data);
|
||||
if (this.Context.CurrentConnectionConfig.DbType == DbType.PostgreSQL)
|
||||
{
|
||||
data.Value.FieldValueConvertFunc = it =>
|
||||
{
|
||||
return UtilMethods.ChangeType2(it, value.GetType());
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
if (cons.HasValue())
|
||||
|
||||
Reference in New Issue
Block a user