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

Represents an attribute that specifies a one-to-many relationship. Used to mark a property intended to store a collection of child entities related to the local parent by a foreign key, identified by the specified property. More...

Inheritance diagram for Buzzware.Cascade.HasManyAttribute:

Public Member Functions

 HasManyAttribute (string foreignIdProperty)
 HasManyAttribute Constructor.

Properties

string ForeignIdProperty [get]
 The property name in the child entity that acts as the foreign key.

Detailed Description

Represents an attribute that specifies a one-to-many relationship. Used to mark a property intended to store a collection of child entities related to the local parent by a foreign key, identified by the specified property.

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

Constructor & Destructor Documentation

◆ HasManyAttribute()

Buzzware.Cascade.HasManyAttribute.HasManyAttribute ( string foreignIdProperty)
inline

HasManyAttribute Constructor.

Parameters
foreignIdPropertyThe name of the property that represents the foreign key in the related entity.

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