Table of Contents

Class SqlitePrimaryKeyBuilder

Namespace
LfrlAnvil.Sqlite.Objects.Builders
Assembly
LfrlAnvil.Sqlite.dll

Represents an SQL primary key constraint builder.

public sealed class SqlitePrimaryKeyBuilder : SqlPrimaryKeyBuilder, ISqlPrimaryKeyBuilder, ISqlConstraintBuilder, ISqlObjectBuilder
Inheritance
SqlitePrimaryKeyBuilder
Implements
Inherited Members
Extension Methods

Remarks

SqliteDialect implementation.

Properties

Database

Database that this object belongs to.

public SqliteDatabaseBuilder Database { get; }

Property Value

SqliteDatabaseBuilder

Index

Underlying index that defines this primary key.

public SqliteIndexBuilder Index { get; }

Property Value

SqliteIndexBuilder

Table

Table that this constraint is attached to.

public SqliteTableBuilder Table { get; }

Property Value

SqliteTableBuilder

Methods

SetDefaultName()

Changes the name of this object to a default name.

public SqlitePrimaryKeyBuilder SetDefaultName()

Returns

SqlitePrimaryKeyBuilder

this.

Remarks

See ISqlDefaultObjectNameProvider for more information.

Exceptions

SqlObjectBuilderException

When name cannot be changed.

SetName(string)

Changes the name of this object.

public SqlitePrimaryKeyBuilder SetName(string name)

Parameters

name string

Name to set.

Returns

SqlitePrimaryKeyBuilder

this.

Exceptions

SqlObjectBuilderException

When name cannot be changed.

ToString()

Returns a string representation of this SqlitePrimaryKeyBuilder instance.

[Pure]
public override string ToString()

Returns

string

String representation.