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

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Creates a StorageMappingItemCollection and loads the metadata that is contained in the specified EdmItemCollection, StoreItemCollection, and collection of XmlReader 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,
	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.

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 3.5
Return to top
Show: