Shunde.NET Framework Class Library

DBColumn.Constraints Property

Any CHECK CONSTRAINTS that aren't covered by other fields in the DBColumn class can be specified manually.

public  Constraints {get; set;}

Example

The className field of the DBObject class requires that the Value start with 1 or more characters, followed by a period, followed by one or more characters. This is achieved with the following way: DBColumn cnCol = new DBColumn( "className", typeof(string), 1, 100); cnCol.Constraints = "className LIKE '_%._%'";

See Also

DBColumn Class | Shunde.Framework Namespace