public virtual bool Equals(FrameworkEntity other) { if (other == null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(false); }
private static bool IsTransient(FrameworkEntity obj) { return(obj != null && Equals(obj.Id, default(int))); }