1
db.Update<Luna.Record.TB_ITEM>().Set(
x => x.ITEM_DURABILITY == Convert.ToInt32(quantity))
.Where(x => x.ITEM_POSITION == Convert.ToInt32(position))
.Execute();
我將如何添加一個AND子句這是怎麼看起來像普通的SQL:亞音速3.0更新,多個條件
UPDATE TB_ITEM
SET [email protected]
WHERE [email protected] AND [email protected]
那是快,謝謝 – geocine 2010-04-12 15:44:56
Luna.Record.GameDBDB db = new Luna.Record.GameDBDB(); (x => x.ITEM_DURABILITY == Convert.ToInt32(quantity)) .Where(x => x.CHARACTER_IDX == Convert.ToInt32(Session [「 CharIndex「]。ToString())&& x.ITEM_POSITION == Convert.ToInt32(position)) .Execute(); 嗨我現在有這些,但它似乎沒有更新數據庫。 – geocine 2010-04-12 15:57:14