Type 属性(关联 SSDL)
在 实体数据模型 (EDM) 中,End 元素的 Type 属性指定一个通过关联与某个其他实体联系起来的实体的类型。
下面的关联示例的两端都是 Employee 类型。End 元素的 Role 和 Multiplicity 属性在通过关联联系起来的实体的类型之外,进一步区分了关系的逻辑。Type 必须由其架构命名空间完全限定。
<Association Name="FK_Employee_Employee_ManagerID">
<End Role="Employee" Type="Adventureworks.Store.Employee"
Multiplicity="0..1" />
<End Role="Employee1" Type="Adventureworks.Store.Employee"
Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="Employee">
<PropertyRef Name="EmployeeID" />
</Principal>
<Dependent Role="Employee1">
<PropertyRef Name="ManagerID" />
</Dependent>
</ReferentialConstraint>
</Association>
另请参见
概念
AssociationSet 元素 (EntityContainer SSDL)
Type 属性(关联 CSDL)
AssociationSetMapping 元素 (MSL)
ReferentialConstraint 元素(关联 SSDL)