Sets whether the field has a unique constraint.
Namespace:
Mindscape.LightSpeed.MigrationsAssembly: Mindscape.LightSpeed.Migrations (in Mindscape.LightSpeed.Migrations.dll)
Version: 3.1.0.0 (4.0.0.0)
Syntax
C# |
---|
public Field WithUnique( bool unique ) |
Visual Basic (Declaration) |
---|
Public Function WithUnique ( _ unique As Boolean _ ) As Field |
Parameters
- unique
- Type: System..::.Boolean
Whether the field has a unique constraint.
Return Value
The field, updated with the specified unique constraint.
Remarks
This method is equivalent to setting the Unique property but
provides a fluent interface.