Shunde.NET Framework Class Library

DBColumn.MaxLength Property

This is the maximum number of characters allowed for a string in this column

public  MaxLength {get; set;}

Remarks

If this is set to a positive Value then the type of column is assumed to be nvarchar. A Value of -1 means that the column is assumed to be an ntext column.

If a string column has a Value longer than the set Value and the set Value is positive, then a ValidationException will be thrown.

See Also

DBColumn Class | Shunde.Framework Namespace