Class PostgreSqlPrimaryKeyBuilder
- Namespace
- LfrlAnvil.PostgreSql.Objects.Builders
- Assembly
- LfrlAnvil.PostgreSql.dll
Represents an SQL primary key constraint builder.
public sealed class PostgreSqlPrimaryKeyBuilder : SqlPrimaryKeyBuilder, ISqlPrimaryKeyBuilder, ISqlConstraintBuilder, ISqlObjectBuilder
- Inheritance
-
PostgreSqlPrimaryKeyBuilder
- Implements
- Inherited Members
- Extension Methods
Remarks
PostgreSqlDialect implementation.
Properties
Database
Database that this object belongs to.
public PostgreSqlDatabaseBuilder Database { get; }
Property Value
Index
Underlying index that defines this primary key.
public PostgreSqlIndexBuilder Index { get; }
Property Value
Table
Table that this constraint is attached to.
public PostgreSqlTableBuilder Table { get; }
Property Value
Methods
SetDefaultName()
Changes the name of this object to a default name.
public PostgreSqlPrimaryKeyBuilder SetDefaultName()
Returns
Remarks
See ISqlDefaultObjectNameProvider for more information.
Exceptions
- SqlObjectBuilderException
When name cannot be changed.
SetName(string)
Changes the name of this object.
public PostgreSqlPrimaryKeyBuilder SetName(string name)
Parameters
name
stringName to set.
Returns
Exceptions
- SqlObjectBuilderException
When name cannot be changed.