UpdateColumns当想单独update bool字段的时候会报错。 返回
C#论坛
老数据
2447
悬赏:5 飞吻
var accountinfo = _accountInfo.Get(accountInfoId);
accountinfo.CanTx = false;
_accountInfo.Db.Updateable(accountinfo).UpdateColumns(c => c.CanTx).ExecuteCommand(); //这条会报 未将对象引用到实例
_accountInfo.Db.Updateable(accountinfo).UpdateColumns(c => new {c.CanTx}).ExecuteCommand(); //这条正常