using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using YieldChain.Security;
namespace YLErp.DBModels
{
///
/// 数据模型基类
///
[Serializable]
public abstract class DBModelBase
{
[Key]
public virtual int id { get; set; }
///
/// 加密主键
///
[NotMapped]
public string EncryptId
{
get { return DataProtect.Encrypt(id.ToString()); }
}
}
}