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;
}
原文地址:https://www.cnblogs.com/shiningrise/p/1437394.html