System\Data\Services\Serializers\MetadataSerializer.cs (15)
220this.Provider.WriteMetadataDocument(this, this.Writer, service);
228Debug.Assert(this.Writer != null, "this.Writer != null");
233MetadataSerializer.WriteTopLevelSchemaElements(this.Writer, dataServiceVersion);
251MetadataSerializer.WriteSchemaElement(this.Writer, namespaceAlongWithTypes.Key, metadataEdmSchemaVersion);
252WriteTypes(this.Writer, namespaceAlongWithTypes.Value, associationsInThisNamespace, metadataManager);
253WriteAssociationTypes(this.Writer, new HashSet<ResourceAssociationType>(associationsInThisNamespace.Values, EqualityComparer<ResourceAssociationType>.Default));
254this.Writer.WriteEndElement();
261MetadataSerializer.WriteSchemaElement(this.Writer, typeNamespace, metadataEdmSchemaVersion);
265WriteTypes(this.Writer, typesInEntityContainerNamespace, associationsInThisNamespace, metadataManager);
266WriteAssociationTypes(this.Writer, new HashSet<ResourceAssociationType>(associationsInThisNamespace.Values, EqualityComparer<ResourceAssociationType>.Default));
269this.WriteEntityContainer(this.Writer, XmlConvert.EncodeName(this.Provider.ContainerName), metadataManager.ResourceSets, metadataManager.ResourceAssociationSets);
270this.Writer.WriteEndElement();
273this.Writer.WriteEndElement();
274this.Writer.WriteEndElement();
275this.Writer.Flush();