mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 20:38:16 +08:00
- 增加 IUpdate.SetDto 单元测试;#218
This commit is contained in:
@ -337,11 +337,8 @@ namespace FreeSql.Internal.CommonProvider
|
||||
protected void SetPriv(ColumnInfo col, object value)
|
||||
{
|
||||
object paramVal = null;
|
||||
if (value != null)
|
||||
{
|
||||
if (col.Attribute.MapType == value.GetType()) paramVal = value;
|
||||
else paramVal = Utils.GetDataReaderValue(col.Attribute.MapType, value);
|
||||
}
|
||||
if (col.Attribute.MapType == col.CsType) paramVal = value;
|
||||
else paramVal = Utils.GetDataReaderValue(col.Attribute.MapType, value);
|
||||
_set.Append(", ").Append(_commonUtils.QuoteSqlName(col.Attribute.Name)).Append(" = ");
|
||||
if (_noneParameter)
|
||||
{
|
||||
|
Reference in New Issue
Block a user