Table of Contents

Interface ISqlPrimaryKeyBuilder

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

Represents an SQL primary key constraint builder.

public interface ISqlPrimaryKeyBuilder : ISqlConstraintBuilder, ISqlObjectBuilder
Inherited Members
Extension Methods

Properties

Index

Underlying index that defines this primary key.

ISqlIndexBuilder Index { get; }

Property Value

ISqlIndexBuilder

Methods

SetDefaultName()

Changes the name of this object to a default name.

ISqlPrimaryKeyBuilder SetDefaultName()

Returns

ISqlPrimaryKeyBuilder

this.

Remarks

See ISqlDefaultObjectNameProvider for more information.

Exceptions

SqlObjectBuilderException

When name cannot be changed.

SetName(string)

Changes the name of this object.

ISqlPrimaryKeyBuilder SetName(string name)

Parameters

name string

Name to set.

Returns

ISqlPrimaryKeyBuilder

this.

Exceptions

SqlObjectBuilderException

When name cannot be changed.