ModelStore 类

实现架构模型实例的物理存储。

继承层次结构

System.Object
  Microsoft.Data.Schema.SchemaModel.ModelStore
    Microsoft.Data.Schema.SchemaModel.DataSchemaModel

命名空间:  Microsoft.Data.Schema.SchemaModel
程序集:  Microsoft.Data.Schema(在 Microsoft.Data.Schema.dll 中)

语法

声明
<SerializableAttribute> _
Public MustInherit Class ModelStore _
    Implements IModelAnnotationHolder, IDisposable, ISerializable
[SerializableAttribute]
public abstract class ModelStore : IModelAnnotationHolder, 
    IDisposable, ISerializable
[SerializableAttribute]
public ref class ModelStore abstract : IModelAnnotationHolder, 
    IDisposable, ISerializable
[<AbstractClass>]
[<SerializableAttribute>]
type ModelStore =  
    class
        interface IModelAnnotationHolder
        interface IDisposable
        interface ISerializable
    end
public abstract class ModelStore implements IModelAnnotationHolder, IDisposable, ISerializable

ModelStore 类型公开以下成员。

构造函数

  名称 说明
受保护的方法 ModelStore(SerializationInfo, StreamingContext)
受保护的方法 ModelStore(ModelCollation, ModelSchema, String)

页首

属性

  名称 说明
公共属性静态成员 BuiltInPropertyTypes
公共属性 Collation
公共属性 Comparer 获取排序规则比较器对象。
公共属性 IsDisposing
公共属性 IsOptimizedForInsert
公共属性 IsOptimizedForQuery
公共属性 Schema
公共属性 WriteCount 返回当前写入计数的值。

页首

方法

  名称 说明
公共方法 AddAnnotation 向模型中添加批注。
公共方法静态成员 Attach
受保护的方法 CleanupExternalProperty 在派生类中实现后,删除元素时释放由外部属性使用的资源。
公共方法 CreateAnnotation(Type)
公共方法 CreateAnnotation(ModelAnnotationClass) 使用给定批注元数据创建批注。
公共方法 CreateAnnotation<TAnnotation>()
公共方法 CreateElement(Type)
公共方法 CreateElement(ModelElementClass) 使用给定的元素元数据对象创建元素。
公共方法 CreateElement<TElement>()
公共方法 CreateElementHandle
受保护的方法 CreateExternalElement(Type) 创建外部元素。
受保护的方法 CreateExternalElement(ModelElementClass) 使用所提供的元素元数据对象创建外部元素。
受保护的方法 CreateExternalElement<TElement>() 创建指定类型的外部元素。
受保护的方法 CreateExternalNamedElement(Type, ModelIdentifier) 使用所提供的类型和标识符创建命名外部元素。
受保护的方法 CreateExternalNamedElement(ModelElementClass, ModelIdentifier) 使用所提供的元素元数据对象和标识符创建命名外部元素。
受保护的方法 CreateExternalNamedElement<TElement>(ModelIdentifier) 使用所提供的元素元数据对象和标识符创建指定类型的命名外部元素。
公共方法 CreateIdentifier(ICollection<String>) 使用所提供的部分名称的集合创建唯一模型标识符。
公共方法 CreateIdentifier(array<String[]) 使用所提供的部分名称的数组创建唯一模型标识符。
公共方法 CreateIdentifier(Boolean, ICollection<String>) 使用所提供的名称部分的集合创建唯一模型标识符。
公共方法 CreateIdentifier(Boolean, array<String[]) 使用所提供的区分大小写的指示和部分名称的数组创建唯一模型标识符。
公共方法 CreateIdentifier(IList<String>, ICollection<String>) 使用所提供的外部部分名称列表、区分大小写的指示和部分名称的集合创建唯一模型标识符。
公共方法 CreateIdentifier(IList<String>, Boolean, ICollection<String>) 使用所提供的外部部分列表、区分大小写的指示和部分名称的集合创建唯一模型标识符。
公共方法 CreateIdentifier(IList<String>, Boolean, array<String[]) 使用所提供的外部部分名称列表、区分大小写的指示和部分名称的数组创建唯一模型标识符。
公共方法 CreateIdentifierHandle 为所提供的标识符创建句柄。
公共方法 CreateNamedAnnotation(Type, ModelIdentifier) 使用所提供的模型标识符创建命名的 ModelAnnotation 对象。
公共方法 CreateNamedAnnotation(ModelAnnotationClass, ModelIdentifier) 使用所提供的批注元数据对象和标识符创建命名的 ModelAnnotation 对象。
公共方法 CreateNamedAnnotation<TAnnotation>(ModelIdentifier) 使用所提供的模型标识符创建命名的 ModelAnnotation 对象。
公共方法 CreateNamedElement(Type, ModelIdentifier)
公共方法 CreateNamedElement(ModelElementClass, ModelIdentifier)
公共方法 CreateNamedElement<TElement>(ModelIdentifier)
公共方法 DecodeIdentifier(String) 返回一个标识符,该标识符与所提供字符串的解码值相对应。
公共方法静态成员 DecodeIdentifier(String, List<String>%, List<String>%) 返回一个标识符,该标识符与所提供字符串的解码值相对应。
受保护的方法 DeserializeExternalProperty 使用所提供的 XML 读取器和属性元数据对象返回外部属性的值。
公共方法静态成员 Detach
公共方法 Dispose() 释放模型。
受保护的方法 Dispose(Boolean) 释放模型。
公共方法静态成员 EncodeIdentifier 返回标识符的字符串表示形式,该标识符是通过适当的引号和分隔符划分其各部分所编码而成的。
公共方法 Equals 确定指定的 Object 是否等于当前的 Object。 (继承自 Object。)
受保护的方法 Finalize (重写 Object.Finalize()。)
受保护的方法 FixupAfterDeserialization
公共方法 FreeElementHandle 释放所提供的元素句柄。
公共方法 FreeIdentifierHandle 释放所提供的元素句柄。
公共方法 GetAllAnnotations() 返回所有批注的列表。
公共方法 GetAllAnnotations(Type)
公共方法 GetAllAnnotations(ModelIdentifier) 返回使用所提供标识符命名的所有批注的列表。
公共方法 GetAllAnnotations(ModelIdentifier, Type)
公共方法 GetAllAnnotations<TType>() 列表返回实现给定类型的模型上的批注。
公共方法 GetAllAnnotations<TType>(ModelIdentifier) 返回实现给定类型的所有批注。
公共方法 GetAnnotations() 返回模型上的所有批注。
公共方法 GetAnnotations(Type) 列表返回实现给定类型的模型上的批注。
公共方法 GetAnnotations(ModelIdentifier) 列表返回与给定标识符相匹配的模型上的批注。
公共方法 GetAnnotations(ModelIdentifier, Type) 返回具有给定标识符名称并实现给定类型的所有批注。
公共方法 GetAnnotations<TType>()
公共方法 GetAnnotations<TType>(ModelIdentifier) 返回所有元素。
公共方法 GetElementHandleTarget 返回由所提供的句柄标识的模型元素。
公共方法 GetElements(ModelElementResolutionStatus) 列表返回具有给定解析状态的存储区中的元素。
公共方法 GetElements(ModelElementValidationStatus) 列表返回具有给定验证状态的存储区中的元素。
公共方法 GetElements(Type, ModelElementQueryFilter)
公共方法 GetElements(ModelElementClass, ModelElementQueryFilter) 返回共享给定筛选器所选择的给定元数据对象的元素。
公共方法 GetElements(ModelElementResolutionStatus, Int32) 返回由具有给定解析状态的计数确定的元素列表。
公共方法 GetElements(ModelElementValidationStatus, Int32) 返回由具有给定验证状态的计数确定的元素列表。
公共方法 GetElements(ModelIdentifier, ModelElementClass, ModelElementQueryFilter)
公共方法 GetElements(ModelIdentifier, ModelIdentifierGroup, ModelElementQueryFilter)
公共方法 GetElements(ModelIdentifier, Type, ModelElementQueryFilter)
公共方法 GetElements<TElement>(ModelElementQueryFilter)
公共方法 GetElements<TElement>(ModelIdentifier, ModelElementQueryFilter)
公共方法 GetElementsCount(ModelElementResolutionStatus) 返回存储区中符合给定状态的元素的数目。
公共方法 GetElementsCount(ModelElementValidationStatus) 返回存储区中符合给定状态的元素的数目。
公共方法 GetElementsFrom(String, ModelElementClass, ModelElementQueryFilter)
公共方法 GetElementsFrom(String, Type, ModelElementQueryFilter)
公共方法 GetElementsFrom<TElement>(String, ModelElementQueryFilter)
受保护的方法 GetExternalProperty<TProperty>
公共方法 GetHashCode 用作特定类型的哈希函数。 (继承自 Object。)
公共方法 GetIdentifier(ICollection<String>)
公共方法 GetIdentifier(array<String[]) 按范围 ID 和字符串从模型中获取标识符。
公共方法 GetIdentifier(IList<String>, ICollection<String>)
公共方法 GetIdentifierHandleTarget
公共方法 GetObjectData
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
公共方法静态成员 IsBuiltInPropertyType
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
受保护的方法 OnModelElementChanged
公共方法 OptimizeForInitialPopulation
公共方法 OptimizeForQuery
公共方法 RemoveAnnotation 从模型中移除批注。
受保护的方法 SerializeExternalProperty
受保护的方法 SetExternalProperty<TProperty>
公共方法 TestWriteCount 使用给定的值测试写入计数。
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)
受保护的方法 UpdateSourceNamePrefixes
受保护的方法 ValidateWriteAccess

页首

事件

  名称 说明
公共事件 ModelChanged
公共事件 ModelOptimizationChanged

页首

备注

模型的物理存储区相关构造属于此类。 ModelStore 具有最少的服务,并且与建模数据库没有直接关联。 相反,ModelStore 是一个实现元素、注释和关系以及属性的基本建模 API。

DataSchemaModel 是一个抽象基类,该基类继承 ModelStore 并表示特定于数据库的模型 API,其中包括对脚本的文档对象模型 (DOM) 的模型生成服务的访问,反之亦然。 数据库平台特定模型实现(例如 Sql90SchemaModel)派生自 DataSchemaModel

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参见

参考

Microsoft.Data.Schema.SchemaModel 命名空间

DataSchemaModel

Sql90SchemaModel

其他资源

扩展 Visual Studio 的数据库功能