Table of Contents

Class SqlConstraint

Namespace
LfrlAnvil.Sql.Objects
Assembly
LfrlAnvil.Sql.Core.dll

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 SqlTable

Table that this constraint belongs to.

builder SqlConstraintBuilder

Source builder.

Properties

Table

Table that this constraint is attached to.

public SqlTable Table { get; }

Property Value

SqlTable

Methods

ToString()

Returns a string representation of this SqlConstraint instance.

[Pure]
public override string ToString()

Returns

string

String representation.