EdmItemCollection.Create Method (IEnumerable<XmlReader>, ReadOnlyCollection<String>, IList<EdmSchemaError>)

 

Factory method that creates an EdmItemCollection.

Namespace:   System.Data.Entity.Core.Metadata.Edm
Assembly:  EntityFramework (in EntityFramework.dll)

public static EdmItemCollection Create(
	IEnumerable<XmlReader> xmlReaders,
	ReadOnlyCollection<string> filePaths,
	out IList<EdmSchemaError> errors
)

Parameters

xmlReaders
Type: System.Collections.Generic.IEnumerable<XmlReader>

CSDL artifacts to load. Must not be null.

filePaths
Type: System.Collections.ObjectModel.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
Type: System.Collections.Generic.IList<EdmSchemaError>

The collection of errors encountered while loading.

Return Value

Type: System.Data.Entity.Core.Metadata.Edm.EdmItemCollection

EdmItemCollection instance if no errors encountered. Otherwise null.