- 增加 IUpdate.SetDto 单元测试;#218

This commit is contained in:
28810
2020-02-28 13:18:33 +08:00
parent 5cff594161
commit 1e88e8add2
16 changed files with 143 additions and 143 deletions

View File

@ -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)
{