Export (0) Print
Expand All

MetadataItemCollectionFactory.CreateEdmItemCollection Method (IEnumerable<XmlReader>, Version, IList<EdmSchemaError>)

Creates an EdmItemCollection and loads the metadata that is contained in the IEnumerable of XmlReader.

Namespace:  System.Data.Entity.Design
Assembly:  System.Data.Entity.Design (in System.Data.Entity.Design.dll)

public static EdmItemCollection CreateEdmItemCollection(
	IEnumerable<XmlReader> readers,
	Version targetEntityFrameworkVersion,
	out IList<EdmSchemaError> errors


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

An IEnumerable of XmlReader that contains the metadata files.

Type: System.Version

The property of EntityFrameworkVersions that corresponds to the targeted version of the Entity Framework.

Type: System.Collections.Generic.IList<EdmSchemaError>

An IList of EdmSchemaError. Any errors that are generated during the EdmItemCollection creation are added to the list.

Return Value

Type: System.Data.Metadata.Edm.EdmItemCollection
An EdmItemCollection that contains the specified metadata.

.NET Framework

Supported in: 4.6, 4.5, 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

© 2014 Microsoft