语言

ObjectItemCollection 类

定义

表示对象层项集合的类。 对集合进行实际维护的大多数实现都是由 ItemCollection 完成的

public class ObjectItemCollection : System.Data.Entity.Core.Metadata.Edm.ItemCollection
type ObjectItemCollection = class
    inherit ItemCollection
Public Class ObjectItemCollection
Inherits ItemCollection
继承

构造函数

名称 说明
ObjectItemCollection()

初始化 ObjectItemCollection 类的新实例。

属性

名称 说明
DataSpace

获取与此项集合关联的数据模型。

(继承自 ItemCollection)
IsReadOnly

获取一个值,该值指示此集合是否为只读。

(继承自 ReadOnlyMetadataCollection<T>)
Item[String]

使用指定的标识从此集合中获取项。

(继承自 ReadOnlyMetadataCollection<T>)

方法

名称 说明
Contains(String)

确定集合是否包含具有指定标识的项。

(继承自 ReadOnlyMetadataCollection<T>)
GetClrType(EnumType)

该方法返回指定 OSpace 类型参数的基础 CLR 类型。 如果参数的 DataSpace 不是 OSpace,则会引发 ArgumentException。

GetClrType(StructuralType)

返回对应于 StructuralType objectSpaceType 参数提供的 CLR 类型。

GetEntityContainer(String, Boolean)

使用指定的实体容器名称返回对象 EntityContainer 。

(继承自 ItemCollection)
GetEntityContainer(String)

使用指定的实体容器名称返回对象 EntityContainer 。

(继承自 ItemCollection)
GetEnumerator()

返回可循环访问此集合的枚举器。

(继承自 ReadOnlyMetadataCollection<T>)
GetFunctions(String, Boolean)

通过使用此项集合中的指定名称返回函数的所有重载。

(继承自 ItemCollection)
GetFunctions(String)

通过使用此项集合中的指定名称返回函数的所有重载。

(继承自 ItemCollection)
GetItem<T>(String, Boolean)

通过使用具有区分大小写或不区分大小写的搜索的指定标识返回强类型 GlobalItem 对象。

(继承自 ItemCollection)
GetItem<T>(String)

使用指定的标识返回强类型 GlobalItem 对象。

(继承自 ItemCollection)
GetItems<T>()

从此项集合中返回指定类型的所有项。

GetPrimitiveTypes()

返回基元类型对象的集合。

GetType(String, String, Boolean)

通过使用指定的类型名称和此项集合中的命名空间名称返回对象 EdmType 。

(继承自 ItemCollection)
GetType(String, String)

使用此项集合中的指定类型名称和命名空间名称返回对象 EdmType 。

(继承自 ItemCollection)
GetValue(String, Boolean)

使用指定的标识从此集合中检索项。

(继承自 ReadOnlyMetadataCollection<T>)
IndexOf(T)

返回此集合中指定值的索引。

(继承自 ReadOnlyMetadataCollection<T>)
LoadFromAssembly(Assembly, EdmItemCollection, Action<String>)

从给定程序集加载元数据。

LoadFromAssembly(Assembly, EdmItemCollection)

从指定的程序集加载元数据。

LoadFromAssembly(Assembly)

从给定程序集加载元数据。

TryGetClrType(EnumType, Type)

返回指定 OSpace 枚举类型参数的基础 CLR 类型。 如果参数的 DataSpace 不是 OSpace,则该方法返回 false 并将 out 参数设置为 null。

TryGetClrType(StructuralType, Type)

返回一个 CLR 类型, StructuralType 该类型对应于 objectSpaceType 参数提供的 CLR 类型。

TryGetEntityContainer(String, Boolean, EntityContainer)

使用指定的实体容器名称返回对象 EntityContainer 。 如果没有实体容器,则此输出参数包含 null;否则,它包含第一个实体容器。

(继承自 ItemCollection)
TryGetEntityContainer(String, EntityContainer)

使用指定的实体容器名称返回对象 EntityContainer 。 如果没有实体容器,则输出参数包含 null;否则,它包含第一个实体容器。

(继承自 ItemCollection)
TryGetItem<T>(String, Boolean, T)

通过使用此项集合中的指定标识返回强类型 GlobalItem 对象。

(继承自 ItemCollection)
TryGetItem<T>(String, T)

通过使用此项集合中的指定标识返回强类型 GlobalItem 对象。

(继承自 ItemCollection)
TryGetType(String, String, Boolean, EdmType)

通过使用指定的类型名称和此项集合中的命名空间名称返回对象 EdmType 。

(继承自 ItemCollection)
TryGetType(String, String, EdmType)

通过使用指定的类型名称和此项集合中的命名空间名称返回对象 EdmType 。

(继承自 ItemCollection)
TryGetValue(String, Boolean, T)

使用指定的标识从此集合中检索项。

(继承自 ReadOnlyMetadataCollection<T>)

适用于