///-------------------------------------------------------------------------------- /// <summary>This method determines whether or not any metadata is /// different between the input instance and the current instance.</summary> /// /// <param name="inputViewProperty">The viewproperty to compare metadata.</param> ///-------------------------------------------------------------------------------- public bool IsIdenticalMetadata(ViewProperty inputViewProperty) { if (ViewID.GetGuid() != inputViewProperty.ViewID.GetGuid()) { return(false); } if (PropertyID.GetGuid() != inputViewProperty.PropertyID.GetGuid()) { return(false); } if (Order.GetInt() != inputViewProperty.Order.GetInt()) { return(false); } if (IsAutoUpdated.GetBool() != inputViewProperty.IsAutoUpdated.GetBool()) { return(false); } if (Description.GetString() != inputViewProperty.Description.GetString()) { return(false); } #region protected #endregion protected return(true); }
///-------------------------------------------------------------------------------- /// <summary>This method determines whether or not any metadata is /// different between the input instance and the current instance.</summary> /// /// <param name="inputPropertyRelationship">The propertyrelationship to compare metadata.</param> ///-------------------------------------------------------------------------------- public bool IsIdenticalMetadata(PropertyRelationship inputPropertyRelationship) { if (PropertyID.GetGuid() != inputPropertyRelationship.PropertyID.GetGuid()) { return(false); } if (RelationshipID.GetGuid() != inputPropertyRelationship.RelationshipID.GetGuid()) { return(false); } if (Order.GetInt() != inputPropertyRelationship.Order.GetInt()) { return(false); } if (IsAutoUpdated.GetBool() != inputPropertyRelationship.IsAutoUpdated.GetBool()) { return(false); } if (Description.GetString() != inputPropertyRelationship.Description.GetString()) { return(false); } #region protected #endregion protected return(true); }