Cascade
Loading...
Searching...
No Matches
Buzzware.Cascade.HasOneAttribute Class Reference

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...

Inheritance diagram for Buzzware.Cascade.HasOneAttribute:

Public Member Functions

 HasOneAttribute (string foreignIdProperty)
 HasOneAttribute Constructor. Initializes the attribute with the specified property name that represents the foreign key relationship.

Properties

string ForeignIdProperty [get]
 The name of the property that contains the foreign key used to access the related entity.

Detailed Description

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

Constructor & Destructor Documentation

◆ 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
foreignIdPropertySpecifies 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