Пример #1
0
        public virtual bool Equals(FrameworkEntity other)
        {
            if (other == null)
            {
                return(false);
            }

            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return(false);
        }
Пример #2
0
 private static bool IsTransient(FrameworkEntity obj)
 {
     return(obj != null && Equals(obj.Id, default(int)));
 }