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

Attribute to denote that a property is a reference to another record (of specified id) of another type. The id is read from the property specified by IdProperty, and the type is taken from the local property. More...

Inheritance diagram for Buzzware.Cascade.BelongsToAttribute:

Public Member Functions

 BelongsToAttribute (string idProperty)
 BelongsToAttribute Constructor.

Properties

string IdProperty [get]
 The property name in the class that holds the id of the related entity.

Detailed Description

Attribute to denote that a property is a reference to another record (of specified id) of another type. The id is read from the property specified by IdProperty, and the type is taken from the local property.

https://buzzware.github.io/cascade/api_reference/md_api__docs_2using__cascade_2associations_2associations.html

Constructor & Destructor Documentation

◆ BelongsToAttribute()

Buzzware.Cascade.BelongsToAttribute.BelongsToAttribute ( string idProperty)
inline

BelongsToAttribute Constructor.

Parameters
idPropertyThe name of the property that contains the id of another entity.

The documentation for this class was generated from the following file:
  • Buzzware.Cascade/attributes/BelongsToAttribute.cs