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

.NET Framework (current version)
 

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
)

Parameters

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

An IEnumerable of XmlReader that contains the metadata files.

targetEntityFrameworkVersion
Type: System.Version

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

errors
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
Available since 4.0
Return to top
Show: