Share via


EdmItemCollection.Create Method

Definition

Factory method that creates an EdmItemCollection.

public static System.Data.Entity.Core.Metadata.Edm.EdmItemCollection Create (System.Collections.Generic.IEnumerable<System.Xml.XmlReader> xmlReaders, System.Collections.ObjectModel.ReadOnlyCollection<string> filePaths, out System.Collections.Generic.IList<System.Data.Entity.Core.Metadata.Edm.EdmSchemaError> errors);
static member Create : seq<System.Xml.XmlReader> * System.Collections.ObjectModel.ReadOnlyCollection<string> *  -> System.Data.Entity.Core.Metadata.Edm.EdmItemCollection
Public Shared Function Create (xmlReaders As IEnumerable(Of XmlReader), filePaths As ReadOnlyCollection(Of String), ByRef errors As IList(Of EdmSchemaError)) As EdmItemCollection

Parameters

xmlReaders
IEnumerable<XmlReader>

CSDL artifacts to load. Must not be null.

filePaths
ReadOnlyCollection<String>

Paths to CSDL artifacts. Used in error messages. Can be null in which case the base Uri of the XmlReader will be used as a path.

errors
IList<EdmSchemaError>

The collection of errors encountered while loading.

Returns

EdmItemCollection instance if no errors encountered. Otherwise null.

Applies to