DbEntry.net复合索引设置

The following code shows a composed index Name_Age with DESC, UNIQUE mode:

class MyTest
{
    [DbKey]
    public long Id = 0;
 
    [Index("Name_Age", ASC = false, UNIQUE = true)]
    public string Name = null;
 
    [Index("Name_Age", ASC = false, UNIQUE = true)]
    public int Age = 0;
}
原文地址:https://www.cnblogs.com/shiningrise/p/1438768.html