小编Ace*_*ahm的帖子

这些方括号是否指示索引器?

public class Task : IBusinessEntity
{
    public Task () {}

    [PrimaryKey, AutoIncrement]
    public int ID { get; set; }

    public string Name { get; set; }
    public string Notes { get; set; }
    public bool Done { get; set; }
}
Run Code Online (Sandbox Code Playgroud)

[PrimaryKey, AutoIncrement]C#中的索引器吗?

此代码适用于SQLlite-NET.

索引是定义的IBusinessEntity还是继承的?

c#

2
推荐指数
2
解决办法
155
查看次数

标签 统计

c# ×1