Table of Contents

Class PostgreSqlCheckBuilder

Namespace
LfrlAnvil.PostgreSql.Objects.Builders
Assembly
LfrlAnvil.PostgreSql.dll

Represents an SQL check constraint builder.

public sealed class PostgreSqlCheckBuilder : SqlCheckBuilder, ISqlCheckBuilder, ISqlConstraintBuilder, ISqlObjectBuilder
Inheritance
PostgreSqlCheckBuilder
Implements
Inherited Members
Extension Methods

Remarks

PostgreSqlDialect implementation.

Properties

Database

Database that this object belongs to.

public PostgreSqlDatabaseBuilder Database { get; }

Property Value

PostgreSqlDatabaseBuilder

ReferencedColumns

Collection of columns referenced by this check constraint.

public SqlObjectBuilderArray<PostgreSqlColumnBuilder> ReferencedColumns { get; }

Property Value

SqlObjectBuilderArray<PostgreSqlColumnBuilder>

Table

Table that this constraint is attached to.

public PostgreSqlTableBuilder Table { get; }

Property Value

PostgreSqlTableBuilder

Methods

SetDefaultName()

Changes the name of this object to a default name.

public PostgreSqlCheckBuilder SetDefaultName()

Returns

PostgreSqlCheckBuilder

this.

Remarks

See ISqlDefaultObjectNameProvider for more information.

Exceptions

SqlObjectBuilderException

When name cannot be changed.

SetName(string)

Changes the name of this object.

public PostgreSqlCheckBuilder SetName(string name)

Parameters

name string

Name to set.

Returns

PostgreSqlCheckBuilder

this.

Exceptions

SqlObjectBuilderException

When name cannot be changed.