StorageMappingItemCollection 类

定义

表示存储映射(CS 映射)空间中的项的集合。

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Maintainability", "CA1506:AvoidExcessiveClassCoupling")]
public class StorageMappingItemCollection : System.Data.Entity.Core.Mapping.MappingItemCollection
type StorageMappingItemCollection = class
    inherit MappingItemCollection
Public Class StorageMappingItemCollection
Inherits MappingItemCollection
继承
属性

构造函数

StorageMappingItemCollection(EdmItemCollection, StoreItemCollection, IEnumerable<XmlReader>)

初始化使用指定 StorageMappingItemCollectionEdmItemCollection 和 XML 阅读器的 StoreItemCollection 类的新实例。

StorageMappingItemCollection(EdmItemCollection, StoreItemCollection, String[])

基于提供的 StorageMappingItemCollectionEdmItemCollection 以及指示元数据文件路径的字符串的集合初始化 StoreItemCollection 类的新实例。

属性

DataSpace

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

(继承自 ItemCollection)
IsReadOnly

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

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

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

(继承自 ReadOnlyMetadataCollection<T>)
MappingVersion

获取此 StorageMappingItemCollection 表示的版本。

MappingViewCacheFactory

获取或设置 , DbMappingViewCacheFactory 用于创建 DbMappingViewCache 用于检索预生成的映射视图的 实例。

方法

ComputeMappingHashValue()

计算集合中单个容器映射的哈希值。

ComputeMappingHashValue(String, String)

计算由映射的容器的名称指定的容器映射的哈希值。

Contains(String)

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

(继承自 ReadOnlyMetadataCollection<T>)
Create(EdmItemCollection, StoreItemCollection, IEnumerable<XmlReader>, IList<String>, IList<EdmSchemaError>)

创建 的 StorageMappingItemCollection工厂方法。

GenerateViews(IList<EdmSchemaError>)

为集合中的单个容器映射创建 (范围的字典、生成的视图) 。

GenerateViews(String, String, IList<EdmSchemaError>)

为由映射容器的名称指定的容器映射创建 (范围的字典、生成的视图) 。

GetEntityContainer(String)

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

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

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

(继承自 ItemCollection)
GetEnumerator()

返回一个可循环访问此集合的枚举数。

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

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

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

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

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

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

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

通过使用指定的标识进行区分大小写或不区分大小写的搜索,返回一个强类型的 GlobalItem 对象。

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

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

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

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

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

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

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

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

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

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

(继承自 ReadOnlyMetadataCollection<T>)
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>)

适用于