ModelRelationship class
Defines the ModelRelationship Class.This class is only available in Office2013. When the object is serialized out as xml, its qualified name is x15:modelRelationship.
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlLeafElement
DocumentFormat.OpenXml.Office2013.Excel.ModelRelationship
Namespace: DocumentFormat.OpenXml.Office2013.Excel
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
2.6.130 CT_ModelRelationship
Target namespace: http://schemas.microsoft.com/office/spreadsheetml/2010/11/main
Referenced by: CT_ModelRelationships
Specifies a single relationship in the Spreadsheet Data Model.<106>
Attributes:
fromTable: An ST_Xstring ([ISO/IEC-29500-1] section 22.9.2.19) attribute that specifies the name of the foreign key table for this relationship.
fromColumn: An ST_Xstring ([ISO/IEC-29500-1] section 22.9.2.19) attribute that specifies the name of the foreign key table column for this relationship.
toTable: An ST_Xstring ([ISO/IEC-29500-1] section 22.9.2.19) attribute that specifies the name of the primary key table for this relationship.
toColumn: An ST_Xstring ([ISO/IEC-29500-1] section 22.9.2.19) attribute that specifies the name of the primary key table column for this relationship.
The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this complex type.
<xsd:complexType name="CT_ModelRelationship">
<xsd:attribute name="fromTable" type="x:ST_Xstring" use="required"/>
<xsd:attribute name="fromColumn" type="x:ST_Xstring" use="required"/>
<xsd:attribute name="toTable" type="x:ST_Xstring" use="required"/>
<xsd:attribute name="toColumn" type="x:ST_Xstring" use="required"/>
</xsd:complexType>
See section 5.3 for the full W3C XML Schema ([XMLSCHEMA1] section 2.1).