EndProperty (AssociationSet ModificationFunctionMapping)

作为实体数据模型 (EDM) 中 AssociationSetMapping 元素的子元素,ModificationFunctionMapping 元素中的 EndProperty 元素指定位于 Association 各端的实体的关键属性的映射。(AssociationSetMapping 元素将 Association 映射到用于创建和删除关联实例的存储过程。)

EndProperty 元素的 ScalarProperty 子元素将相关实体的标识属性 (Property) 映射到 ParameterName 属性 (Attribute) 所指定的存储过程参数。

Note注意

AssociationSetMapping 元素中的 EndProperty 元素不同于 EntityTypeMapping 元素中的 AssociationEnd 元素。有关更多信息,请参见 AssociationEnd (EntityTypeMapping)

示例

在下面的示例中,EndProperty 元素是 InsertFunction 元素的一部分。此 InsertFunction 元素映射一个存储过程,该存储过程创建 Adventureworks 销售模型中的 Contact 实体与 Address 实体之间的 Association 元素的新实例。

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

另请参见

概念

InsertFunction (AssociationSetMapping)
DeleteFunction (AssociationSetMapping)
AssociationSetMapping 元素 (MSL)
存储过程支持(实体框架)