Skip to content

MasterDetailRelationAttribute constructor

Defines a master detail relation (1-N) between this row and another.

public MasterDetailRelationAttribute(string foreignKey)
parameter description
foreignKey The property name of the FK field in the detail table which matches the PK (id) of the master table. For example, if the two tables are 'Order(Id, Date, ...)' and 'OrderDetail(DetailId, OrderId, Qty, ...)' it should be 'OrderId'.

Remarks

Initializes a new instance of the MasterDetailRelationAttribute class.

See Also