Sets whether the field has a unique constraint.
Namespace:
Mindscape.NHibernateModelDesigner.MigrationsAssembly: Mindscape.NHibernateModelDesigner.Migrations (in Mindscape.NHibernateModelDesigner.Migrations.dll)
Version: 3.1.0.0 (3.1.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.