dbEntry复合主键

The mutil-key example:

public class MKey : IDbObject
{
    [DbKey(IsDbGenerate = false), Length(50)]
    public string Name;
 
    [DbKey(IsDbGenerate = false)]
    public int Age;
 
    public bool Gender;
}
posted @ 2009-04-16 17:19  shiningrise  阅读(291)  评论(0编辑  收藏  举报
// 侧边栏目录 // https://blog-static.cnblogs.com/files/douzujun/marvin.nav.my1502.css