Class SqlConstraint
Represents an SQL constraint attached to a table.
public abstract class SqlConstraint : SqlObject, ISqlConstraint, ISqlObject
- Inheritance
-
SqlConstraint
- Implements
- Derived
- Inherited Members
Constructors
SqlConstraint(SqlTable, SqlConstraintBuilder)
Creates a new SqlConstraint instance.
protected SqlConstraint(SqlTable table, SqlConstraintBuilder builder)
Parameters
table
SqlTableTable that this constraint belongs to.
builder
SqlConstraintBuilderSource builder.
Properties
Table
Table that this constraint is attached to.
public SqlTable Table { get; }
Property Value
Methods
ToString()
Returns a string representation of this SqlConstraint instance.
[Pure]
public override string ToString()
Returns
- string
String representation.