UpdateColumns当想单独update bool字段的时候会报错。 返回

C#论坛 老数据
2447
            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(); //这条正常


热忱回答0