Esempio n. 1
0
        }//isRecordDeletionConstraintViolation()

        public void assertColumnIsAbsent(string TableName, string ColumnName, string ThrowMessageIn = "")
        {
            string ThrowMessage = string.Empty;

            if (string.Empty == ThrowMessageIn)
            {
                ThrowMessage = " exists in ";
            }
            else
            {
                ThrowMessage = " " + ThrowMessageIn;
            }

            if (_CswNbtSchemaModTrnsctn.isColumnDefinedInDataBase(TableName, ColumnName))
            {
                throw (new CswDniException("Column " + ColumnName + ThrowMessage + " the database "));
            }

            if (_CswNbtSchemaModTrnsctn.isColumnDefinedInMetaData(TableName, ColumnName))
            {
                throw (new CswDniException("Column " + ColumnName + ThrowMessage + " the meta data "));
            }
        }//assertColumnIsAbsent()