Table of Contents

Interface ISqlCheckBuilder

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

Represents an SQL check constraint builder.

public interface ISqlCheckBuilder : ISqlConstraintBuilder, ISqlObjectBuilder
Inherited Members
Extension Methods

Properties

Condition

Underlying condition of this check constraint.

SqlConditionNode Condition { get; }

Property Value

SqlConditionNode

ReferencedColumns

Collection of columns referenced by this check constraint.

IReadOnlyCollection<ISqlColumnBuilder> ReferencedColumns { get; }

Property Value

IReadOnlyCollection<ISqlColumnBuilder>

Methods

SetDefaultName()

Changes the name of this object to a default name.

ISqlCheckBuilder SetDefaultName()

Returns

ISqlCheckBuilder

this.

Remarks

See ISqlDefaultObjectNameProvider for more information.

Exceptions

SqlObjectBuilderException

When name cannot be changed.

SetName(string)

Changes the name of this object.

ISqlCheckBuilder SetName(string name)

Parameters

name string

Name to set.

Returns

ISqlCheckBuilder

this.

Exceptions

SqlObjectBuilderException

When name cannot be changed.