Beispiel #1
0
        ///--------------------------------------------------------------------------------
        /// <summary>This method determines whether or not any metadata is
        /// different between the input instance and the current instance.</summary>
        ///
        /// <param name="inputAuditProperty">The auditproperty to compare metadata.</param>
        ///--------------------------------------------------------------------------------
        public bool IsIdenticalMetadata(AuditProperty inputAuditProperty)
        {
            if (PropertyName.GetString() != inputAuditProperty.PropertyName.GetString())
            {
                return(false);
            }
            if (IsAddAuditProperty.GetBool() != inputAuditProperty.IsAddAuditProperty.GetBool())
            {
                return(false);
            }
            if (IsUpdateAuditProperty.GetBool() != inputAuditProperty.IsUpdateAuditProperty.GetBool())
            {
                return(false);
            }
            if (IsValueGenerated.GetBool() != inputAuditProperty.IsValueGenerated.GetBool())
            {
                return(false);
            }
            if (DataTypeCode.GetInt() != inputAuditProperty.DataTypeCode.GetInt())
            {
                return(false);
            }
            if (Precision.GetInt() != inputAuditProperty.Precision.GetInt())
            {
                return(false);
            }
            if (Scale.GetInt() != inputAuditProperty.Scale.GetInt())
            {
                return(false);
            }
            if (InitialValue.GetString() != inputAuditProperty.InitialValue.GetString())
            {
                return(false);
            }

            #region protected
            #endregion protected

            return(true);
        }