Share via


StoreItemCollection.Create Method

Definition

Factory method that creates a StoreItemCollection.

public static System.Data.Entity.Core.Metadata.Edm.StoreItemCollection Create (System.Collections.Generic.IEnumerable<System.Xml.XmlReader> xmlReaders, System.Collections.ObjectModel.ReadOnlyCollection<string> filePaths, System.Data.Entity.Infrastructure.DependencyResolution.IDbDependencyResolver resolver, out System.Collections.Generic.IList<System.Data.Entity.Core.Metadata.Edm.EdmSchemaError> errors);
static member Create : seq<System.Xml.XmlReader> * System.Collections.ObjectModel.ReadOnlyCollection<string> * System.Data.Entity.Infrastructure.DependencyResolution.IDbDependencyResolver *  -> System.Data.Entity.Core.Metadata.Edm.StoreItemCollection
Public Shared Function Create (xmlReaders As IEnumerable(Of XmlReader), filePaths As ReadOnlyCollection(Of String), resolver As IDbDependencyResolver, ByRef errors As IList(Of EdmSchemaError)) As StoreItemCollection

Parameters

xmlReaders
IEnumerable<XmlReader>

SSDL artifacts to load. Must not be null.

filePaths
ReadOnlyCollection<String>

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

resolver
IDbDependencyResolver

Custom resolver. Currently used to resolve DbProviderServices implementation. If null the default resolver will be used.

errors
IList<EdmSchemaError>

The collection of errors encountered while loading.

Returns

StoreItemCollection instance if no errors encountered. Otherwise null.

Applies to