Exemple #1
0
        public bool HaveColumn(string columnName, string columnValue, out bool retValueMatched)
        {
            bool ret          = false;
            bool valueMatched = false;

            if (columnName == "DataID")
            {
                ret = true;
                if (DataID.ToString() == columnValue)
                {
                    valueMatched = true;
                }
            }
            if (columnName == "DataGUID")
            {
                ret = true;
                if (DataGUID.ToString() == columnValue)
                {
                    valueMatched = true;
                }
            }
            if (columnName == "RevisionNo")
            {
                ret = true;
                if (RevisionNo.ToString() == columnValue)
                {
                    valueMatched = true;
                }
            }
            if (columnName == "UserID")
            {
                ret = true;
                if (UserID.ToString() == columnValue)
                {
                    valueMatched = true;
                }
            }
            if (columnName == "UserGUID")
            {
                ret = true;
                if (UserGUID.ToString() == columnValue)
                {
                    valueMatched = true;
                }
            }
            if (columnName == "CreatedDate")
            {
                ret = true;
                if (CreatedDate.ToString() == columnValue)
                {
                    valueMatched = true;
                }
            }
            if (columnName == "LastUpdateDate")
            {
                ret = true;
                if (LastUpdateDate.ToString() == columnValue)
                {
                    valueMatched = true;
                }
            }
            if (columnName == "ParentDataID")
            {
                ret = true;
                if (ParentDataID.ToString() == columnValue)
                {
                    valueMatched = true;
                }
            }
            if (columnName == "ParentDataGUID")
            {
                ret = true;
                if (ParentDataGUID.ToString() == columnValue)
                {
                    valueMatched = true;
                }
            }
            if (columnName == "DataTypeID")
            {
                ret = true;
                if (DataTypeID.ToString() == columnValue)
                {
                    valueMatched = true;
                }
            }
            if (columnName == "DataTypeGUID")
            {
                ret = true;
                if (DataTypeGUID.ToString() == columnValue)
                {
                    valueMatched = true;
                }
            }
            if (columnName == "DataValue")
            {
                ret = true;
                if (DataValue.ToString() == columnValue)
                {
                    valueMatched = true;
                }
            }
            if (columnName == "DataRefTypeID")
            {
                ret = true;
                if (DataRefTypeID.ToString() == columnValue)
                {
                    valueMatched = true;
                }
            }
            if (columnName == "DataRefTypeGUID")
            {
                ret = true;
                if (DataRefTypeGUID.ToString() == columnValue)
                {
                    valueMatched = true;
                }
            }
            if (columnName == "DataRefID")
            {
                ret = true;
                if (DataRefID.ToString() == columnValue)
                {
                    valueMatched = true;
                }
            }
            if (columnName == "IsActive")
            {
                ret = true;
                if (IsActive.ToString() == columnValue)
                {
                    valueMatched = true;
                }
            }
            if (columnName == "IsDeleted")
            {
                ret = true;
                if (IsDeleted.ToString() == columnValue)
                {
                    valueMatched = true;
                }
            }
            if (columnName == "Sequence")
            {
                ret = true;
                if (Sequence.ToString() == columnValue)
                {
                    valueMatched = true;
                }
            }
            retValueMatched = valueMatched;
            return(ret);
        }
Exemple #2
0
        public bool HaveColumn(string columnName, string columnValue, out bool retValueMatched)
        {
            bool ret          = false;
            bool valueMatched = false;

            if (columnName == "DataTypeID")
            {
                ret = true;
                if (DataTypeID.ToString() == columnValue)
                {
                    valueMatched = true;
                }
            }
            if (columnName == "DataTypeGUID")
            {
                ret = true;
                if (DataTypeGUID.ToString() == columnValue)
                {
                    valueMatched = true;
                }
            }
            if (columnName == "RevisionNo")
            {
                ret = true;
                if (RevisionNo.ToString() == columnValue)
                {
                    valueMatched = true;
                }
            }
            if (columnName == "DataType")
            {
                ret = true;
                if (DataType.ToString() == columnValue)
                {
                    valueMatched = true;
                }
            }
            if (columnName == "IsDefault")
            {
                ret = true;
                if (IsDefault.ToString() == columnValue)
                {
                    valueMatched = true;
                }
            }
            if (columnName == "IsSystem")
            {
                ret = true;
                if (IsSystem.ToString() == columnValue)
                {
                    valueMatched = true;
                }
            }
            if (columnName == "IsActive")
            {
                ret = true;
                if (IsActive.ToString() == columnValue)
                {
                    valueMatched = true;
                }
            }
            if (columnName == "Sequence")
            {
                ret = true;
                if (Sequence.ToString() == columnValue)
                {
                    valueMatched = true;
                }
            }
            retValueMatched = valueMatched;
            return(ret);
        }