Table of Contents

Class PostgreSqlTableBuilder

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

Represents an SQL table builder.

public sealed class PostgreSqlTableBuilder : SqlTableBuilder, ISqlTableBuilder, ISqlObjectBuilder
Inheritance
PostgreSqlTableBuilder
Implements
Inherited Members
Extension Methods

Remarks

PostgreSqlDialect implementation.

Properties

Columns

Collection of columns that belong to this table.

public PostgreSqlColumnBuilderCollection Columns { get; }

Property Value

PostgreSqlColumnBuilderCollection

Constraints

Collection of constraints that belong to this table.

public PostgreSqlConstraintBuilderCollection Constraints { get; }

Property Value

PostgreSqlConstraintBuilderCollection

Database

Database that this object belongs to.

public PostgreSqlDatabaseBuilder Database { get; }

Property Value

PostgreSqlDatabaseBuilder

Schema

Schema that this table belongs to.

public PostgreSqlSchemaBuilder Schema { get; }

Property Value

PostgreSqlSchemaBuilder

Methods

SetName(string)

Changes the name of this object.

public PostgreSqlTableBuilder SetName(string name)

Parameters

name string

Name to set.

Returns

PostgreSqlTableBuilder

this.

Exceptions

SqlObjectBuilderException

When name cannot be changed.