Example #1
0
        private string AddFilterColumnCommandText(DmColumn col)
        {
            var quotedColumnName = new ObjectNameParser(col.ColumnName, "[", "]").QuotedString;
            var quotedColumnType = new ObjectNameParser(col.GetSqlDbTypeString(), "[", "]").QuotedString;

            quotedColumnType += col.GetSqlTypePrecisionString();

            return(string.Concat("ALTER TABLE ", quotedColumnName, " ADD ", quotedColumnType));
        }