【发布时间】:2023-03-26 20:04:01
【问题描述】:
我正在尝试为 SQLite 表实现此代码:
[Table("WordT")]
public class WordT
{
private int _WId;
[Column("WId")]
[PrimaryKey]
[NotNull]
[AutoIncrement]
public int WId
{
get { return _WId; }
set
{
if (_WId != value)
{
_WId = value;
}
}
}
// ...
}
(示例来自这里:SQLite Table That Auto Increments Primary Key)
但我在任何命名空间中都找不到属性。
它们在哪里定义?
【问题讨论】:
标签: c# sqlite datatable attributes