语言

StorageMappingItemCollection.Create 方法

定义

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

参数

edmItemCollection
EdmItemCollection

要映射的 edm 元数据集合。 不得为 null。

storeItemCollection
StoreItemCollection

要映射的存储元数据集合。 不得为 null。

xmlReaders
IEnumerable<XmlReader>

要加载的 MSL 项目。 不得为 null。

filePaths
IList<String>

MSL 项目的路径。 在错误消息中使用。 在这种情况下 null ,XmlReader 的基本 URI 可用作路径。

errors
IList<EdmSchemaError>

加载时遇到的错误的集合。

返回

System.Data.Entity.Core.Mapping.StorageMappingItemCollection.EdmItemCollection 实例(如果未遇到任何错误)。 否则 null。

适用于