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;
}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-03
  • 2022-12-23
  • 2022-12-23
  • 2021-12-02
猜你喜欢
  • 2021-12-21
  • 2021-05-06
  • 2021-05-26
  • 2021-11-23
  • 2022-12-23
  • 2021-12-24
相关资源
相似解决方案