MetadataItemCollectionFactory.CreateStorageMappingItemCollection Method (EdmItemCollection, StoreItemCollection, IEnumerable<XmlReader>, Version, IList<EdmSchemaError>)

.NET Framework (current version)
 

Creates a StorageMappingItemCollection from the mapping information in the XmlReader objects and the metadata in the specified EdmItemCollection and StoreItemCollection objects.

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

public static StorageMappingItemCollection CreateStorageMappingItemCollection(
	EdmItemCollection edmCollection,
	StoreItemCollection storeCollection,
	IEnumerable<XmlReader> readers,
	Version targetEntityFrameworkVersion,
	out IList<EdmSchemaError> errors
)

Parameters

edmCollection
Type: System.Data.Metadata.Edm.EdmItemCollection

An EdmItemCollection object.

storeCollection
Type: System.Data.Metadata.Edm.StoreItemCollection

A StoreItemCollection object.

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

An IEnumerable of XmlReader containing 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 generated during the StorageMappingItemCollection creation are added to the list.

Return Value

Type: System.Data.Mapping.StorageMappingItemCollection

A StorageMappingItemCollection that contains the specified metadata.

.NET Framework
Available since 4.0
Return to top
Show: