标签: .net ormlite-servicestack
ServiceStack.Ormlite中是否有任何方式可以执行以下更新: update tableName set field = field + 1 where ....
答案 0 :(得分:0)
你可以通过UpdateFmt这样的函数来实现......
UpdateFmt
db.UpdateFmt<Poco>(set: "IntValue = IntValue + 1", where: "Id = {0}".Fmt(1));