The ForeignKeyAttribute type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| ForeignKeyAttribute(String) |
Only use this constructor for types that are registred with the DynamicTypeManager. Primary key field is infered.
| |
| ForeignKeyAttribute(Type, String) |
Tell the system that this data property is a reference (foreign key) to another IData.
|
Properties
| Name | Description | |
|---|---|---|
| AllowCascadeDeletes |
If the "parent" data is deleted and this is set to true, then the data that
refer to the parent is also deleted.
| |
| NullableString |
Use this if non-reference is allowed with strings foreign keys
| |
| NullReferenceValue |
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.
| |
| NullReferenceValueType |
The NullReferenceValue will be converted to the the type specifed with the property
|