Share via


DataSchemaModel 类

DataSchemaModel 是 ModelStore 的专用形式。 所有数据库架构提供程序都必须实现继承此基类的类。

继承层次结构

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

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

语法

声明
<SerializableAttribute> _
Public MustInherit Class DataSchemaModel _
    Inherits ModelStore
[SerializableAttribute]
public abstract class DataSchemaModel : ModelStore
[SerializableAttribute]
public ref class DataSchemaModel abstract : public ModelStore
[<AbstractClass>]
[<SerializableAttribute>]
type DataSchemaModel =  
    class
        inherit ModelStore
    end
public abstract class DataSchemaModel extends ModelStore

DataSchemaModel 类型公开以下成员。

构造函数

  名称 说明
受保护的方法 DataSchemaModel(SerializationInfo, StreamingContext) 初始化 DataSchemaModel 类的新实例。
受保护的方法 DataSchemaModel(ModelCollation, ModelSchema, String, ScriptCache, ErrorManager) 初始化 DataSchemaModel 类的新实例。

页首

属性

  名称 说明
公共属性 AnnotationsIncludedInSerialization 获取对模型进行序列化时将包括的批注类型的列表。
公共属性 Collation (继承自 ModelStore。)
公共属性 Comparer 获取排序规则比较器对象。 (继承自 ModelStore。)
受保护的属性 Controller 获取模型控制器。
公共属性 DatabaseSchemaProvider 获取数据库架构提供程序。
公共属性 ElementProcessingOperationsCount 获取在模型准备就绪之前剩余的元素处理操作的数目。
公共属性 ErrorManager 获取用于报告错误的错误管理器。
公共属性 IsDisposing (继承自 ModelStore。)
公共属性 IsOptimizedForInsert (继承自 ModelStore。)
公共属性 IsOptimizedForQuery (继承自 ModelStore。)
公共属性 Schema (继承自 ModelStore。)
公共属性 ScriptCache 获取用于缓存脚本的脚本缓存。
公共属性 WriteCount 返回当前写入计数的值。 (继承自 ModelStore。)

页首

方法

  名称 说明
公共方法 AddAnnotation 向模型中添加批注。 (继承自 ModelStore。)
公共方法 AddCustomData 向模型添加自定义数据。
公共方法 BeginBatchUpdate 开始批量更新。
受保护的方法 CleanupExternalProperty 在派生类中实现后,删除元素时释放由外部属性使用的资源。 (继承自 ModelStore。)
公共方法 CreateAnnotation(Type) (继承自 ModelStore。)
公共方法 CreateAnnotation(ModelAnnotationClass) 使用给定批注元数据创建批注。 (继承自 ModelStore。)
公共方法 CreateAnnotation<TAnnotation>() (继承自 ModelStore。)
公共方法 CreateElement(Type) (继承自 ModelStore。)
公共方法 CreateElement(ModelElementClass) 使用给定的元素元数据对象创建元素。 (继承自 ModelStore。)
公共方法 CreateElement<TElement>() (继承自 ModelStore。)
公共方法 CreateElementHandle (继承自 ModelStore。)
受保护的方法 CreateExternalElement(Type) 创建外部元素。 (继承自 ModelStore。)
受保护的方法 CreateExternalElement(ModelElementClass) 使用所提供的元素元数据对象创建外部元素。 (继承自 ModelStore。)
受保护的方法 CreateExternalElement<TElement>() 创建指定类型的外部元素。 (继承自 ModelStore。)
受保护的方法 CreateExternalNamedElement(Type, ModelIdentifier) 使用所提供的类型和标识符创建命名外部元素。 (继承自 ModelStore。)
受保护的方法 CreateExternalNamedElement(ModelElementClass, ModelIdentifier) 使用所提供的元素元数据对象和标识符创建命名外部元素。 (继承自 ModelStore。)
受保护的方法 CreateExternalNamedElement<TElement>(ModelIdentifier) 使用所提供的元素元数据对象和标识符创建指定类型的命名外部元素。 (继承自 ModelStore。)
公共方法 CreateIdentifier(ICollection<String>) 使用所提供的部分名称的集合创建唯一模型标识符。 (继承自 ModelStore。)
公共方法 CreateIdentifier(array<String[]) 使用所提供的部分名称的数组创建唯一模型标识符。 (继承自 ModelStore。)
公共方法 CreateIdentifier(Boolean, ICollection<String>) 使用所提供的名称部分的集合创建唯一模型标识符。 (继承自 ModelStore。)
公共方法 CreateIdentifier(Boolean, array<String[]) 使用所提供的区分大小写的指示和部分名称的数组创建唯一模型标识符。 (继承自 ModelStore。)
公共方法 CreateIdentifier(IList<String>, ICollection<String>) 使用所提供的外部部分名称列表、区分大小写的指示和部分名称的集合创建唯一模型标识符。 (继承自 ModelStore。)
公共方法 CreateIdentifier(IList<String>, Boolean, ICollection<String>) 使用所提供的外部部分列表、区分大小写的指示和部分名称的集合创建唯一模型标识符。 (继承自 ModelStore。)
公共方法 CreateIdentifier(IList<String>, Boolean, array<String[]) 使用所提供的外部部分名称列表、区分大小写的指示和部分名称的数组创建唯一模型标识符。 (继承自 ModelStore。)
公共方法 CreateIdentifierHandle 为所提供的标识符创建句柄。 (继承自 ModelStore。)
公共方法 CreateNamedAnnotation(Type, ModelIdentifier) 使用所提供的模型标识符创建命名的 ModelAnnotation 对象。 (继承自 ModelStore。)
公共方法 CreateNamedAnnotation(ModelAnnotationClass, ModelIdentifier) 使用所提供的批注元数据对象和标识符创建命名的 ModelAnnotation 对象。 (继承自 ModelStore。)
公共方法 CreateNamedAnnotation<TAnnotation>(ModelIdentifier) 使用所提供的模型标识符创建命名的 ModelAnnotation 对象。 (继承自 ModelStore。)
公共方法 CreateNamedElement(Type, ModelIdentifier) (继承自 ModelStore。)
公共方法 CreateNamedElement(ModelElementClass, ModelIdentifier) (继承自 ModelStore。)
公共方法 CreateNamedElement<TElement>(ModelIdentifier) (继承自 ModelStore。)
公共方法 DecodeIdentifier(String) 返回一个标识符,该标识符与所提供字符串的解码值相对应。 (继承自 ModelStore。)
公共方法静态成员 Deserialize(String, ErrorManager)
公共方法静态成员 Deserialize(TextReader, ErrorManager, String)
公共方法静态成员 Deserialize(String, ErrorManager, Action<DataSchemaModelHeader, DatabaseSchemaProvider, DataSchemaModelConstructor>)
公共方法静态成员 Deserialize(TextReader, ErrorManager, String, Action<DataSchemaModelHeader, DatabaseSchemaProvider, DataSchemaModelConstructor>)
受保护的方法 DeserializeExternalProperty 使用所提供的 XML 读取器和属性元数据对象返回外部属性的值。 (继承自 ModelStore。)
公共方法 Dispose() 释放模型。 (继承自 ModelStore。)
受保护的方法 Dispose(Boolean) (重写 ModelStore.Dispose(Boolean)。)
公共方法 EndBatchUpdate 结束批量更新。
公共方法 Equals 确定指定的 Object 是否等于当前的 Object。 (继承自 Object。)
受保护的方法 Finalize (继承自 ModelStore。)
受保护的方法 FixupAfterDeserialization (继承自 ModelStore。)
受保护的方法 FixupAfterXmlDeserialization
公共方法 FreeElementHandle 释放所提供的元素句柄。 (继承自 ModelStore。)
公共方法 FreeIdentifierHandle 释放所提供的元素句柄。 (继承自 ModelStore。)
公共方法 GetAllAnnotations() 返回所有批注的列表。 (继承自 ModelStore。)
公共方法 GetAllAnnotations(Type) (继承自 ModelStore。)
公共方法 GetAllAnnotations(ModelIdentifier) 返回使用所提供标识符命名的所有批注的列表。 (继承自 ModelStore。)
公共方法 GetAllAnnotations(ModelIdentifier, Type) (继承自 ModelStore。)
公共方法 GetAnnotations() 返回模型上的所有批注。 (继承自 ModelStore。)
公共方法 GetAnnotations(Type) 列表返回实现给定类型的模型上的批注。 (继承自 ModelStore。)
公共方法 GetAnnotations(ModelIdentifier) 列表返回与给定标识符相匹配的模型上的批注。 (继承自 ModelStore。)
公共方法 GetAnnotations(ModelIdentifier, Type) 返回具有给定标识符名称并实现给定类型的所有批注。 (继承自 ModelStore。)
公共方法 GetCustomData() 获取自定义数据的列表。
公共方法 GetCustomData(String) 使用所提供的类别获取自定义数据的列表。
公共方法 GetCustomData(String, String) 使用所提供的类别和类型名称获取自定义数据的列表。
公共方法 GetElementHandleTarget 返回由所提供的句柄标识的模型元素。 (继承自 ModelStore。)
公共方法 GetElements(ModelElementResolutionStatus) 列表返回具有给定解析状态的存储区中的元素。 (继承自 ModelStore。)
公共方法 GetElements(ModelElementValidationStatus) 列表返回具有给定验证状态的存储区中的元素。 (继承自 ModelStore。)
公共方法 GetElements(Type, ModelElementQueryFilter) (继承自 ModelStore。)
公共方法 GetElements(ModelElementClass, ModelElementQueryFilter) 返回共享给定筛选器所选择的给定元数据对象的元素。 (继承自 ModelStore。)
公共方法 GetElements(ModelElementResolutionStatus, Int32) 返回由具有给定解析状态的计数确定的元素列表。 (继承自 ModelStore。)
公共方法 GetElements(ModelElementValidationStatus, Int32) 返回由具有给定验证状态的计数确定的元素列表。 (继承自 ModelStore。)
公共方法 GetElements(ModelIdentifier, ModelElementClass, ModelElementQueryFilter) (继承自 ModelStore。)
公共方法 GetElements(ModelIdentifier, ModelIdentifierGroup, ModelElementQueryFilter) (继承自 ModelStore。)
公共方法 GetElements(ModelIdentifier, Type, ModelElementQueryFilter) (继承自 ModelStore。)
公共方法 GetElements<TElement>(ModelElementQueryFilter) (继承自 ModelStore。)
公共方法 GetElements<TElement>(ModelIdentifier, ModelElementQueryFilter) (继承自 ModelStore。)
公共方法 GetElementsCount(ModelElementResolutionStatus) 返回存储区中符合给定状态的元素的数目。 (继承自 ModelStore。)
公共方法 GetElementsCount(ModelElementValidationStatus) 返回存储区中符合给定状态的元素的数目。 (继承自 ModelStore。)
公共方法 GetElementsFrom(String, ModelElementClass, ModelElementQueryFilter) (继承自 ModelStore。)
公共方法 GetElementsFrom(String, Type, ModelElementQueryFilter) (继承自 ModelStore。)
公共方法 GetElementsFrom<TElement>(String, ModelElementQueryFilter) (继承自 ModelStore。)
公共方法 GetElementsFromExternalSource 从外部源获取元素。
受保护的方法 GetElementSources 获取特定元素的元素源。
受保护的方法 GetExternalProperty<TProperty> (继承自 ModelStore。)
公共方法静态成员 GetExternalSourceFileName 获取指定的模型元素的外部源文件名。
公共方法静态成员 GetExternalSourceLogicalName 获取指定的模型元素的外部源的逻辑名称。
公共方法 GetHashCode 用作特定类型的哈希函数。 (继承自 Object。)
公共方法 GetIdentifier(ICollection<String>) (继承自 ModelStore。)
公共方法 GetIdentifier(array<String[]) 按范围 ID 和字符串从模型中获取标识符。 (继承自 ModelStore。)
公共方法 GetIdentifier(IList<String>, ICollection<String>) (继承自 ModelStore。)
公共方法 GetIdentifierHandleTarget (继承自 ModelStore。)
公共方法 GetObjectData 返回一个 SerializationInfo 对象,其中包含对 DataSchemaModel 对象进行序列化所需的所有数据。 (重写 ModelStore.GetObjectData(SerializationInfo, StreamingContext)。)
受保护的方法 GetRelationshipEntrySources 获取关系项源的列表。
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
受保护的方法 InitializeReferenceConstructor 使用所提供的标头数据和模型构造函数初始化引用构造函数。
公共方法静态成员 IsElementFromCompositeReference 指示元素是否来自已添加到当前模型的其他架构模型。
公共方法静态成员 IsElementFromExternalReference(IModelElement) 指示指定元素是否来自外部引用。
公共方法静态成员 IsElementFromExternalReference(IModelElement, String) 指示指定元素是否来自外部引用。
公共方法 LoadExternals 从外部源加载模型元素,例如持久化模型。
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
受保护的方法 OnCustomDataAdded 添加自定义数据时调用。
受保护的方法 OnCustomDataRemoved 移除自定义数据时调用。
受保护的方法 OnModelElementChanged 模型元素更改时调用。 (重写 ModelStore.OnModelElementChanged(IModelElement, ModelEventType)。)
公共方法 OptimizeForInitialPopulation (继承自 ModelStore。)
公共方法 OptimizeForQuery (继承自 ModelStore。)
公共方法静态成员 ReadDataSchemaModelHeader(TextReader) 在数据库架构提供程序实现中重写此方法,以读取数据架构模型标头。
公共方法静态成员 ReadDataSchemaModelHeader(String)
公共方法静态成员 ReadDataSchemaModelHeader(TextReader, Boolean) 在数据库架构提供程序实现中重写此方法,以读取数据架构模型标头。
公共方法静态成员 ReadDataSchemaModelHeader(String, Boolean) 在数据库架构提供程序实现中重写此方法,以读取数据架构模型标头。
公共方法 RegisterForController 注册模型控制器。
公共方法 RemoveAnnotation 从模型中移除批注。 (继承自 ModelStore。)
公共方法 RemoveCustomData 移除自定义数据。
公共方法 Resolve() 解析模型中的所有元素。
公共方法 Resolve(Int32) 解析指定数量的元素。
公共方法 Serialize(TextWriter)
公共方法 Serialize(TextWriter, IEnumerable<Type>)
公共方法 Serialize(TextWriter, IEnumerable<Type>, Boolean) 将数据架构模型写入指定的输出。
受保护的方法 SerializeExternalProperty (继承自 ModelStore。)
受保护的方法 SetExternalProperty<TProperty> (继承自 ModelStore。)
公共方法 TestWriteCount 使用给定的值测试写入计数。 (继承自 ModelStore。)
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)
公共方法 UnloadExternals 从指定的文件卸载外部元素。
受保护的方法 UpdateSourceNamePrefixes (继承自 ModelStore。)
受保护的方法 ValidateWriteAccess 验证写访问权限。 (重写 ModelStore.ValidateWriteAccess()。)
受保护的方法 ValidReferenceTranslator 返回一个值,该值指示引用转换器是否可用于从另一个数据库架构提供程序转换到当前提供程序。

页首

事件

  名称 说明
公共事件 ModelChanged (继承自 ModelStore。)
公共事件 ModelOptimizationChanged (继承自 ModelStore。)

页首

字段

  名称 说明
公共字段静态成员 CustomSchemaDataFileName 值为“FileName”。
公共字段静态成员 CustomSchemaDataLogicalName 值为“LogicalName”。
公共字段静态成员 DatabaseSchemaReferenceExternalParts 值为“ExternalParts”。
公共字段静态成员 DatabaseSchemaType 值为“DbSchema”。
公共字段静态成员 ReferenceCategory 值为“Reference”。
公共字段静态成员 SuppressMissingDependenciesErrors 值为“SuppressMissingDependenciesErrors”。

页首

线程安全

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

请参见

参考

Microsoft.Data.Schema.SchemaModel 命名空间

ModelStore