public ConstraintInfo(string constraintName, ConstraintType constraintType, ObjectName tableName, string[] columnNames)
{
if (tableName == null)
throw new ArgumentNullException("tableName");
if (columnNames == null)
throw new ArgumentNullException("columnNames");
if (constraintType != ConstraintType.Check && columnNames.Length == 0)
throw new ArgumentException("The provided column names for the constraint is empty.", "columnNames");
ConstraintName = constraintName;
ColumnNames = columnNames;
TableName = tableName;
ConstraintType = constraintType;
}