Table of Contents

Interface ISqlConstraintBuilder

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

Represents an SQL constraint builder attached to a table.

public interface ISqlConstraintBuilder : ISqlObjectBuilder
Inherited Members

Properties

Table

Table that this constraint is attached to.

ISqlTableBuilder Table { get; }

Property Value

ISqlTableBuilder

Methods

SetDefaultName()

Changes the name of this object to a default name.

ISqlConstraintBuilder SetDefaultName()

Returns

ISqlConstraintBuilder

this.

Remarks

See ISqlDefaultObjectNameProvider for more information.

Exceptions

SqlObjectBuilderException

When name cannot be changed.

SetName(string)

Changes the name of this object.

ISqlConstraintBuilder SetName(string name)

Parameters

name string

Name to set.

Returns

ISqlConstraintBuilder

this.

Exceptions

SqlObjectBuilderException

When name cannot be changed.