1.获取Model的Attribute
var auditAttr=dbEntry.Entity.GetType().GetCustomAttribute(typeof(AuditableAttribute),false).SingleOrDefault() as AuditableAttribute.
var auditAttr=Attributes.GetCustomAttribute(dbEntry.Entity.GetType(),typeof(AuditableAttribute),false) as AuditableAttribute.
second p.