public override int GetHashCode() { unchecked { var hashCode = (FactType != null ? FactType.GetHashCode() : 0); hashCode = (hashCode * 397) ^ FactId.GetHashCode(); return(hashCode); } }