例如我有一个实体类:
///<summary>
/// 序列码信息
///</summary>
public class SerialInfo : IEntityWithKey<Guid>
{
///<summary>
/// 序列码Id
///</summary>
public Guid Id { get; set; }
///<summary>
/// 所属用户
///</summary>
public int UserId { get; set; }
///<summary>
/// 创建时间
///</summary>
public DateTime CreateDate { get; set; }
///<summary>
/// 过期时间
///</summary>
public DateTime ExpiresDate { get; set; }
///<summary>
/// 序列号类型
///</summary>
public SerialType Type { get; set; }
///<summary>
/// 序列号包含的数据
///</summary>
public string Data { get; set; }
}
怎么配置ef,在不改变SerialInfo的情况下使用ef?
http://kb.cnblogs.com/page/89749/