ComponentOne DataObjects for .NET
AllowDbNull Property (Field)

C1.Data.2 Assembly > C1.Data.SchemaObjects Namespace > Field Class : AllowDbNull Property
Gets or sets a value indicating whether null or empty string values are allowed in this field.
Syntax
'Declaration
 
Public Overridable Property AllowDbNull As System.Boolean
public virtual System.bool AllowDbNull {get; set;}
Remarks
If this property is set to False, an attempt to assign null or empty string value to this field generates an exception.

The effective value of this property at run time (see EffectiveAllowDbNull) for fields based on other fields (composite table fields, table view fields) is False if the base field's property value is False, even though the property value itself is independent of the base field's property value.

See Also

Reference

Field Class
Field Members
EffectiveAllowDbNull Property
Table Fields
Composite Table Fields