EndProperty Element (AssociationSetMapping)
In the Entity Data Model (EDM), the EndProperty elements in an AssociationSetMapping specify the entities that are logically related by the Association being mapped in mapping specification language (MSL). Each EndProperty element contains a Name attribute that specifies the role defined in the conceptual schema, a ScalarProperty attribute that specifies a property of the entity as the key property that identifies one End of the association, and a ColumnName attribute that specifies a column in a data table corresponding to the ScalarProperty of the entity that participates in the association.
There are two EndProperty elements in each AssociationSetMapping as shown in the following example.
<AssociationSetMapping Name="Employee_Employee_ManagerID" TypeName="AdventureWorksHRModel.Employee_Employee_ManagerID" StoreEntitySet="Employee"> <EndProperty Name="Employee"> <ScalarProperty Name="EmployeeID" ColumnName="ManagerID" /> </EndProperty> <EndProperty Name="EmployeeManager"> <ScalarProperty Name="EmployeeID" ColumnName="EmployeeID" /> </EndProperty> <Condition ColumnName="ManagerID" IsNull="false" /> </AssociationSetMapping>