Shunde.NET Framework Class Library

DBColumn.IsUnique Property

Specifies that this column should be unique in the Table

public  IsUnique {get; set;}

Remarks

If IsUnique is set to true, a ValidationException is thrown when saving the object if there is another row with the same Value in the database for this column. Unlike in Sql Server, two null values are considered Unique in this context.

See Also

DBColumn Class | Shunde.Framework Namespace