MetadataItemCollectionFactory.CreateEdmItemCollection 方法

定义

创建一个 EdmItemCollection 并加载元数据,该元数据包含在 IEnumerableXmlReader 中。Creates an EdmItemCollection and loads the metadata that is contained in the IEnumerable of XmlReader.

重载

CreateEdmItemCollection(IEnumerable<XmlReader>, IList<EdmSchemaError>)

创建一个 EdmItemCollection 并加载元数据,该元数据包含在 IEnumerableXmlReader 中。Creates an EdmItemCollection and loads the metadata that is contained in the IEnumerable of XmlReader.

CreateEdmItemCollection(IEnumerable<XmlReader>, Version, IList<EdmSchemaError>)

创建一个 EdmItemCollection 并加载元数据,该元数据包含在 IEnumerableXmlReader 中。Creates an EdmItemCollection and loads the metadata that is contained in the IEnumerable of XmlReader.

CreateEdmItemCollection(IEnumerable<XmlReader>, IList<EdmSchemaError>)

创建一个 EdmItemCollection 并加载元数据,该元数据包含在 IEnumerableXmlReader 中。Creates an EdmItemCollection and loads the metadata that is contained in the IEnumerable of XmlReader.

public:
 static System::Data::Metadata::Edm::EdmItemCollection ^ CreateEdmItemCollection(System::Collections::Generic::IEnumerable<System::Xml::XmlReader ^> ^ readers, [Runtime::InteropServices::Out] System::Collections::Generic::IList<System::Data::Metadata::Edm::EdmSchemaError ^> ^ % errors);
public static System.Data.Metadata.Edm.EdmItemCollection CreateEdmItemCollection (System.Collections.Generic.IEnumerable<System.Xml.XmlReader> readers, out System.Collections.Generic.IList<System.Data.Metadata.Edm.EdmSchemaError> errors);
static member CreateEdmItemCollection : seq<System.Xml.XmlReader> * IList -> System.Data.Metadata.Edm.EdmItemCollection
Public Shared Function CreateEdmItemCollection (readers As IEnumerable(Of XmlReader), ByRef errors As IList(Of EdmSchemaError)) As EdmItemCollection

参数

readers
IEnumerable<XmlReader>

的 ,它包含元数据文件。An IEnumerable of XmlReader that contains the metadata files.

errors
IList<EdmSchemaError>

IListEdmSchemaErrorAn IList of EdmSchemaError. EdmItemCollection 创建过程中生成的任何错误将添加到列表。Any errors that are generated during the EdmItemCollection creation are added to the list.

返回

EdmItemCollection

包含指定元数据的 EdmItemCollectionAn EdmItemCollection that contains the specified metadata.

适用于

CreateEdmItemCollection(IEnumerable<XmlReader>, Version, IList<EdmSchemaError>)

创建一个 EdmItemCollection 并加载元数据,该元数据包含在 IEnumerableXmlReader 中。Creates an EdmItemCollection and loads the metadata that is contained in the IEnumerable of XmlReader.

public:
 static System::Data::Metadata::Edm::EdmItemCollection ^ CreateEdmItemCollection(System::Collections::Generic::IEnumerable<System::Xml::XmlReader ^> ^ readers, Version ^ targetEntityFrameworkVersion, [Runtime::InteropServices::Out] System::Collections::Generic::IList<System::Data::Metadata::Edm::EdmSchemaError ^> ^ % errors);
public static System.Data.Metadata.Edm.EdmItemCollection CreateEdmItemCollection (System.Collections.Generic.IEnumerable<System.Xml.XmlReader> readers, Version targetEntityFrameworkVersion, out System.Collections.Generic.IList<System.Data.Metadata.Edm.EdmSchemaError> errors);
static member CreateEdmItemCollection : seq<System.Xml.XmlReader> * Version * IList -> System.Data.Metadata.Edm.EdmItemCollection
Public Shared Function CreateEdmItemCollection (readers As IEnumerable(Of XmlReader), targetEntityFrameworkVersion As Version, ByRef errors As IList(Of EdmSchemaError)) As EdmItemCollection

参数

readers
IEnumerable<XmlReader>

的 ,它包含元数据文件。An IEnumerable of XmlReader that contains the metadata files.

targetEntityFrameworkVersion
Version

与 Entity Framework 的目标版本相对应的 EntityFrameworkVersions 的属性。The property of EntityFrameworkVersions that corresponds to the targeted version of the Entity Framework.

errors
IList<EdmSchemaError>

IListEdmSchemaErrorAn IList of EdmSchemaError. EdmItemCollection 创建过程中生成的任何错误将添加到列表。Any errors that are generated during the EdmItemCollection creation are added to the list.

返回

EdmItemCollection

包含指定元数据的 EdmItemCollectionAn EdmItemCollection that contains the specified metadata.

适用于