Interface ISqlPrimaryKeyBuilder
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
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
stringName to set.
Returns
- ISqlPrimaryKeyBuilder
this.
Exceptions
- SqlObjectBuilderException
When name cannot be changed.