StoreItemCollection.Create Method (IEnumerable<XmlReader>, ReadOnlyCollection<String>, IDbDependencyResolver, IList<EdmSchemaError>)

 

Factory method that creates a StoreItemCollection.

Namespace:   System.Data.Entity.Core.Metadata.Edm
Assembly:  EntityFramework (in EntityFramework.dll)

public static StoreItemCollection Create(
	IEnumerable<XmlReader> xmlReaders,
	ReadOnlyCollection<string> filePaths,
	IDbDependencyResolver resolver,
	out IList<EdmSchemaError> errors
)

Parameters

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

SSDL artifacts to load. Must not be null.

filePaths
Type: System.Collections.ObjectModel.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
Type: System.Data.Entity.Infrastructure.DependencyResolution.IDbDependencyResolver

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

errors
Type: System.Collections.Generic.IList<EdmSchemaError>

The collection of errors encountered while loading.

Return Value

Type: System.Data.Entity.Core.Metadata.Edm.StoreItemCollection

StoreItemCollection instance if no errors encountered. Otherwise null.