我知道这是一个愚蠢的问题,但我无法在任何地方找到答案。 如何为列中的默认值设置 sqlite.net 模型? 这是我的模型类:
public class ItemTaxes
{
[PrimaryKey]
public string Sku { get; set;}
public bool IsTaxable { get; set;}// How to set IsTaxable's default value to true?
public decimal PriceTaxExclusive { get; set;}
}
我想设置默认值 不是空的 柱 IsTaxable 至 真正,我该怎么做?顺便说一句我不想使用原始的sql语句,即 conn.execute();
谢谢。