StoreItemCollection 类
[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 msdn.com/data/ef。]
表示存储空间中项的集合的类。
继承层次结构
System.Object
System.Collections.ObjectModel.ReadOnlyCollection<GlobalItem>
System.Data.Entity.Core.Metadata.Edm.ReadOnlyMetadataCollection<GlobalItem>
System.Data.Entity.Core.Metadata.Edm.ItemCollection
System.Data.Entity.Core.Metadata.Edm.StoreItemCollection
命名空间: System.Data.Entity.Core.Metadata.Edm
程序集: EntityFramework(在 EntityFramework.dll 中)
语法
声明
Public Class StoreItemCollection _
Inherits ItemCollection
用法
Dim instance As StoreItemCollection
public class StoreItemCollection : ItemCollection
public ref class StoreItemCollection : public ItemCollection
type StoreItemCollection =
class
inherit ItemCollection
end
public class StoreItemCollection extends ItemCollection
StoreItemCollection 类型公开以下成员。
构造函数
名称 | 描述 | |
---|---|---|
StoreItemCollection(IEnumerable<XmlReader>) | 使用指定的 XMLReader 初始化 StoreItemCollection 类的新实例。 | |
StoreItemCollection(String[]) | 使用指定的文件路径初始化 StoreItemCollection 类的新实例。 | |
StoreItemCollection(EdmModel) | 初始化 StoreItemCollection 类的新实例。 |
顶部
属性
名称 | 描述 | |
---|---|---|
Count | (继承自 ReadOnlyCollection<GlobalItem>。) | |
DataSpace | 获取与此项集合关联的数据模型。 (继承自 ItemCollection。) | |
IsReadOnly | 获取一个值,该值指示此集合是否是只读的。 (继承自 ReadOnlyMetadataCollection<T>。) | |
Item[String] | 使用指定的标识从此集合中获取一个项。 (继承自 ReadOnlyMetadataCollection<T>。) | |
Item[Int32] | (继承自 ReadOnlyCollection<GlobalItem>。) | |
Items | (继承自 ReadOnlyCollection<GlobalItem>。) | |
ProviderFactory | 获取 StoreItemCollection 的提供程序工厂。 | |
ProviderInvariantName | 获取 StoreItemCollection 的固定名称。 | |
ProviderManifest | 获取 StoreItemCollection 的提供程序清单。 | |
ProviderManifestToken | 获取 StoreItemCollection 的清单标记。 | |
StoreSchemaVersion | 获取此集合的存储架构版本。 |
顶部
方法
顶部
扩展方法
名称 | 描述 | |
---|---|---|
GetAllAssociations | 检索此 ItemCollection 中所有 AssociationType 元素的可枚举集合 (由 MetadataWorkspaceExtensions 定义。) | |
GetAllAssociationSets | 检索此 ItemCollection 中所有 AssociationSet 元素的可枚举集合 (由 MetadataWorkspaceExtensions 定义。) | |
GetAllEntitySets | 检索此 ItemCollection 中所有 EntitySet 元素的可枚举集合 (由 MetadataWorkspaceExtensions 定义。) | |
GetAllEntityTypes | 检索此 ItemCollection 中所有 EntityType 元素的可枚举集合 (由 MetadataWorkspaceExtensions 定义。) | |
GetAllReferentialConstraints | 检索此 SSDL/StoreItemCollection 中所有 ReferentialConstraints 的可枚举集合 (由 MetadataWorkspaceExtensions 定义。) | |
GetEntityContainerName | 检索此 ItemCollection 中 &lt;EntityContainer/&gt; 元素的“Name”特性。 (由 MetadataWorkspaceExtensions 定义。) | |
GetNamespace | 通过检查首先找到的 StructuralType 检索此 ItemCollection 的命名空间 (由 MetadataWorkspaceExtensions 定义。) |
顶部
显式接口实现
顶部
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。