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;
}
posted @ 2009-04-18 16:32  shiningrise  阅读(375)  评论(0编辑  收藏  举报
// 侧边栏目录 // https://blog-static.cnblogs.com/files/douzujun/marvin.nav.my1502.css