EndProperty (AssociationSet ModificationFunctionMapping)
Entity Data Model (EDM) の AssociationSetMapping 要素の子要素として、ModificationFunctionMapping 要素の EndProperty 要素は、Association の末尾にあるエンティティのキー プロパティに対するマッピングを指定します (AssociationSetMapping 要素は、Association を、アソシエーションのインスタンスを作成および削除するストアド プロシージャにマップします)。
EndProperty 要素の ScalarProperty 子要素は、ParameterName 属性が指定するストアド プロシージャ パラメータに、関連エンティティの ID プロパティをマップします。
[!メモ]
AssociationSetMapping 要素の EndProperty 要素は、EntityTypeMapping 要素の AssociationEnd 要素とは異なります。詳細については、「AssociationEnd (EntityTypeMapping)」を参照してください。
例
次の例では、EndProperty 要素が InsertFunction 要素の一部になっています。この InsertFunction 要素は、Adventureworks Sales Model の 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)
ストアド プロシージャのサポート (Entity Framework)