Share via


StorageMappingItemCollection.Create Method

Definition

Factory method that creates a StorageMappingItemCollection.

public static System.Data.Entity.Core.Mapping.StorageMappingItemCollection Create (System.Data.Entity.Core.Metadata.Edm.EdmItemCollection edmItemCollection, System.Data.Entity.Core.Metadata.Edm.StoreItemCollection storeItemCollection, System.Collections.Generic.IEnumerable<System.Xml.XmlReader> xmlReaders, System.Collections.Generic.IList<string> filePaths, out System.Collections.Generic.IList<System.Data.Entity.Core.Metadata.Edm.EdmSchemaError> errors);
static member Create : System.Data.Entity.Core.Metadata.Edm.EdmItemCollection * System.Data.Entity.Core.Metadata.Edm.StoreItemCollection * seq<System.Xml.XmlReader> * System.Collections.Generic.IList<string> *  -> System.Data.Entity.Core.Mapping.StorageMappingItemCollection

Parameters

edmItemCollection
EdmItemCollection

The edm metadata collection to map. Must not be null.

storeItemCollection
StoreItemCollection

The store metadata collection to map. Must not be null.

xmlReaders
IEnumerable<XmlReader>

MSL artifacts to load. Must not be null.

filePaths
IList<String>

Paths to MSL artifacts. Used in error messages. Can be null in which case the base Uri of the XmlReader will be used as a path.

errors
IList<EdmSchemaError>

The collection of errors encountered while loading.

Returns

System.Data.Entity.Core.Mapping.StorageMappingItemCollection.EdmItemCollection instance if no errors encountered. Otherwise null.

Applies to