【问题标题】:Where can I find the attributes "[Table("...")], [PrimaryKey], [AutoIncrement]"?我在哪里可以找到属性“[Table("...")]、[PrimaryKey]、[AutoIncrement]”?
【发布时间】: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


    【解决方案1】:

    【讨论】:

      猜你喜欢
      • 2019-05-01
      • 2015-01-29
      • 1970-01-01
      • 2019-04-30
      • 2015-03-07
      • 2014-07-16
      • 2012-05-30
      • 2013-07-13
      • 2012-06-05
      相关资源
      最近更新 更多