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