Ejemplo n.º 1
0
        ///--------------------------------------------------------------------------------
        /// <summary>This method determines whether or not any metadata is
        /// different between the input instance and the current instance.</summary>
        ///
        /// <param name="inputEntityReference">The entityreference to compare metadata.</param>
        ///--------------------------------------------------------------------------------
        public bool IsIdenticalMetadata(EntityReference inputEntityReference)
        {
            if (EntityReferenceName.GetString() != inputEntityReference.EntityReferenceName.GetString())
            {
                return(false);
            }
            if (EntityID.GetGuid() != inputEntityReference.EntityID.GetGuid())
            {
                return(false);
            }
            if (ReferencedEntityID.GetGuid() != inputEntityReference.ReferencedEntityID.GetGuid())
            {
                return(false);
            }

            #region protected
            #endregion protected

            return(true);
        }
Ejemplo n.º 2
0
        ///--------------------------------------------------------------------------------
        /// <summary>This method determines whether or not any metadata is
        /// different between the input instance and the current instance.</summary>
        ///
        /// <param name="inputCollection">The collection to compare metadata.</param>
        ///--------------------------------------------------------------------------------
        public bool IsIdenticalMetadata(Collection inputCollection)
        {
            if (CollectionName.GetString() != inputCollection.CollectionName.GetString())
            {
                return(false);
            }
            if (EntityID.GetGuid() != inputCollection.EntityID.GetGuid())
            {
                return(false);
            }
            if (ReferencedEntityID.GetGuid() != inputCollection.ReferencedEntityID.GetGuid())
            {
                return(false);
            }

            #region protected
            #endregion protected

            return(true);
        }
Ejemplo n.º 3
0
        ///--------------------------------------------------------------------------------
        /// <summary>This method determines whether or not any metadata is
        /// different between the input instance and the current instance.</summary>
        ///
        /// <param name="inputStateModel">The statemodel to compare metadata.</param>
        ///--------------------------------------------------------------------------------
        public bool IsIdenticalMetadata(StateModel inputStateModel)
        {
            if (StateModelName.GetString() != inputStateModel.StateModelName.GetString())
            {
                return(false);
            }
            if (EntityID.GetGuid() != inputStateModel.EntityID.GetGuid())
            {
                return(false);
            }
            if (IsAutoUpdated.GetBool() != inputStateModel.IsAutoUpdated.GetBool())
            {
                return(false);
            }
            if (Description.GetString() != inputStateModel.Description.GetString())
            {
                return(false);
            }

            #region protected
            #endregion protected

            return(true);
        }