public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Values != null ? Values.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Regex != null ? Regex.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (DataType != null ? DataType.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ MetadataDefinitionIdentity.GetHashCode();
         return(hashCode);
     }
 }
 public bool Equals(EntityMetadataDefintionResource other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Equals(Values, other.Values) && string.Equals(Regex, other.Regex) && string.Equals(DataType, other.DataType) && string.Equals(Name, other.Name) && MetadataDefinitionIdentity.Equals(other.MetadataDefinitionIdentity));
 }