Compartir a través de


EndProperty (AssociationSet ModificationFunctionMapping)

As a child element of an AssociationSetMapping element in the Entity Data Model (EDM), the EndProperty element in a ModificationFunctionMapping element specifies mapping for key properties of entities at the ends of an Association. (The AssociationSetMapping element maps the Association to the stored procedures that create and delete instances of the association.)

The ScalarProperty child elements of EndProperty elements map the identity properties of the related entities to the stored-procedure parameters that the ParameterName attributes specify.

Note

The EndProperty element in an AssociationSetMapping element is not the same as the AssociationEnd element in an EntityTypeMapping element. For more information, see AssociationEnd (EntityTypeMapping).

Example

In the following example, the EndProperty element is part of the InsertFunction element. This InsertFunction element maps a stored procedure that creates new instances of an Association element between a Contact entity and an Address entity in the Adventureworks sales model.

      <InsertFunction
        FunctionName="ContactInformationModel.Store.SetAddress">
        <EndProperty Name="Address">
          <ScalarProperty Name="AddressID" ParameterName="AddressID"/>
        </EndProperty>
        <EndProperty Name="Contact">
          <ScalarProperty Name="ContactID" ParameterName="ContactID"/>
        </EndProperty>
      </InsertFunction>

See Also

Concepts

InsertFunction (AssociationSetMapping
DeleteFunction (AssociationSetMapping)
AssociationSetMapping Element (MSL)
Stored Procedure Support (Entity Framework)