The ForeignKeyAttribute type exposes the following members.

Properties

  NameDescription
Public propertyAllowCascadeDeletes
If the "parent" data is deleted and this is set to true, then the data that refer to the parent is also deleted.
Public propertyNullableString
Use this if non-reference is allowed with strings foreign keys
Public propertyNullReferenceValue
This value is used when foreign key integrity is performed. If this is not set, the data that the foreign key is pointing to must always exists.
Public propertyNullReferenceValueType
The NullReferenceValue will be converted to the the type specifed with the property

See Also