namespace: Serenity.Data.Mapping assembly: Serenity.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'. |