/// <summary> /// 实体对比 /// </summary> /// <param name="obj"></param> /// <returns></returns> public virtual bool EntityEquals(object obj) { return(EntityHelper.EntityEquals(this, obj)); }
/// <summary> /// 是否为临时对象(不持久化到数据,且没有id) /// </summary> /// <returns></returns> public virtual bool IsTransient() { return(EntityHelper.IsTransient(this)); }