This attribute class is used within the Cascade library to indicate a 'has-one' relationship between entities. When applied to a property, it signifies that the property represents a single related entity and specifies the property name that holds the foreign key to the related entity.
More...
|
| | HasOneAttribute (string foreignIdProperty) |
| | HasOneAttribute Constructor. Initializes the attribute with the specified property name that represents the foreign key relationship.
|
|
|
string | ForeignIdProperty [get] |
| | The name of the property that contains the foreign key used to access the related entity.
|
This attribute class is used within the Cascade library to indicate a 'has-one' relationship between entities. When applied to a property, it signifies that the property represents a single related entity and specifies the property name that holds the foreign key to the related entity.
https://buzzware.github.io/cascade/api_reference/md_api__docs_2using__cascade_2associations_2associations.html
◆ HasOneAttribute()
| Buzzware.Cascade.HasOneAttribute.HasOneAttribute |
( |
string | foreignIdProperty | ) |
|
|
inline |
HasOneAttribute Constructor. Initializes the attribute with the specified property name that represents the foreign key relationship.
- Parameters
-
| foreignIdProperty | Specifies the name of the property holding the foreign key. |
The documentation for this class was generated from the following file:
- Buzzware.Cascade/attributes/HasOneAttribute.cs