更新忽略字段BUG 返回
C#论坛
老数据
1
2209
悬赏:5 飞吻
数据库字段 password
[SugarColumn(ColumnName = "password")]
public string Password
{
get;
set;
}
db.Updateable(user).IgnoreColumns(it => new { it.Password }).ExecuteCommand();此时将无法排除字段Password,去掉 [SugarColumn(ColumnName = "password")] 就可以排除,当然这样无法满足需求
db.Updateable(user).IgnoreColumns(it => it == "Password" ).ExecuteCommand();
这个可以
热忱回答(1)
-
fate stay night VIP0
2018/7/1GITHUB已经更新了
0 回复