Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 758 Bytes

File metadata and controls

16 lines (11 loc) · 758 Bytes

MasterDetailRelationAttribute constructor

namespace: Serenity.Data.Mapping   assemblySerenity.Net.Data

Initializes a new instance of the MasterDetailRelationAttribute class.

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

See Also