Class SqlitePrimaryKeyBuilder
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
Index
Underlying index that defines this primary key.
public SqliteIndexBuilder Index { get; }
Property Value
Table
Table that this constraint is attached to.
public SqliteTableBuilder Table { get; }
Property Value
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
namestringName 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.