Definition at line 993 of file XmlTreeGen.cs.
994 {
995 XmlElement xmlElement =
dc.CreateElement(
"msdata",
"Relationship",
"urn:schemas-microsoft-com:xml-msdata");
997 xmlElement.SetAttribute(
"parent",
"urn:schemas-microsoft-com:xml-msdata",
rel.ParentKey.Table.EncodedTableName);
998 xmlElement.SetAttribute(
"child",
"urn:schemas-microsoft-com:xml-msdata",
rel.ChildKey.Table.EncodedTableName);
1000 {
1001 xmlElement.SetAttribute(
"ParentTableNamespace",
"urn:schemas-microsoft-com:xml-msdata",
rel.ParentKey.Table.Namespace);
1002 }
1004 {
1005 xmlElement.SetAttribute(
"ChildTableNamespace",
"urn:schemas-microsoft-com:xml-msdata",
rel.ChildKey.Table.Namespace);
1006 }
1011 {
1015 {
1017 }
1019 }
1020 xmlElement.SetAttribute(
"parentkey",
"urn:schemas-microsoft-com:xml-msdata",
value);
1024 {
1026 {
1028 }
1029 else
1030 {
1032 }
1035 {
1037 }
1039 }
1040 xmlElement.SetAttribute(
"childkey",
"urn:schemas-microsoft-com:xml-msdata",
value);
1043 }
DataTableCollection Tables
int InternalIndexOf(string tableName)
static void AddExtendedProperties(PropertyCollection props, XmlElement node)
static ? string EncodeLocalName(string? name)
virtual void SetAttribute(string name, string? value)
References System.Data.XmlTreeGen._ds, System.Data.XmlTreeGen.AddExtendedProperties(), System.Xml.Dictionary, System.Data.DataColumn.EncodedColumnName, System.Xml.XmlConvert.EncodeLocalName(), System.Data.DataTableCollection.InternalIndexOf(), System.Xml.XmlElement.SetAttribute(), System.Data.DataSet.Tables, and System.value.
Referenced by System.Data.XmlTreeGen.HandleTable(), and System.Data.XmlTreeGen.SchemaTree().