EndProperty(AssociationSet ModificationFunctionMapping)
EDM(엔터티 데이터 모델)에 있는 AssociationSetMapping 요소의 자식 요소인 ModificationFunctionMapping 요소의 EndProperty 요소는 Association의 두 End에 엔터티의 키 속성에 대한 매핑을 지정합니다. AssociationSetMapping 요소는 연결 인스턴스를 만들고 삭제하는 저장 프로시저에 Association을 매핑합니다.
EndProperty 요소의 ScalarProperty 자식 요소는 관련 엔터티의 ID 속성을 ParameterName 특성이 지정하는 저장 프로시저 매개 변수에 매핑합니다.
![]() |
---|
AssociationSetMapping 요소의 EndProperty 요소는 EntityTypeMapping 요소의 AssociationEnd 요소와는 다릅니다. 자세한 내용은 AssociationEnd(EntityTypeMapping)를 참조하십시오. |
예제
다음 예제에서 EndProperty 요소는 InsertFunction 요소의 일부입니다. 이 InsertFunction 요소는 Adventureworks Sales 모델에 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)