我正在使用 ServiceStack Ormlite 对数据库表进行部分更新。
我有一个模型:
public class Model
{
public int Id;
public int Property1;
public int Property2;
public int Property3;
}
但我只想更新字段 Property1 和 Property2。
有人知道怎么做吗?
谢谢。
最佳答案
参见ServiceStack's OrmLite documentation对于 Update statements - 它们包含许多不同的部分更新示例。
关于servicestack ormlite部分更新,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13278706/