SqlSchemaModel 类

SQL Server 数据库的架构管理器的基类。

继承层次结构

System.Object
  Microsoft.Data.Schema.SchemaModel.ModelStore
    Microsoft.Data.Schema.SchemaModel.DataSchemaModel
      Microsoft.Data.Schema.Sql.SchemaModel.SqlSchemaModel
        Microsoft.Data.Schema.Sql.SchemaModel.Sql100SchemaModel
        Microsoft.Data.Schema.Sql.SchemaModel.Sql80SchemaModel
        Microsoft.Data.Schema.Sql.SchemaModel.Sql90SchemaModel

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

语法

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

SqlSchemaModel 类型公开以下成员。

构造函数

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

页首

属性

  名称 说明
公共属性 AnnotationsIncludedInSerialization 获取一个值,该值指示对模型进行序列化时是否包括批注。 (重写 DataSchemaModel.AnnotationsIncludedInSerialization。)
公共属性 Capability 获取一个值,该值指示此模型具有哪些功能。
公共属性 Collation (继承自 ModelStore。)
公共属性 Comparer 获取排序规则比较器对象。 (继承自 ModelStore。)
受保护的属性 Controller 获取模型控制器。 (继承自 DataSchemaModel。)
公共属性 DatabaseSchemaProvider 获取数据库架构提供程序。 (继承自 DataSchemaModel。)
公共属性 ElementProcessingOperationsCount 获取在解析模型之前剩余的操作数。 (重写 DataSchemaModel.ElementProcessingOperationsCount。)
公共属性 ErrorManager 获取用于报告错误的错误管理器。 (继承自 DataSchemaModel。)
公共属性 IsDisposing (继承自 ModelStore。)
公共属性 IsOptimizedForInsert (继承自 ModelStore。)
公共属性 IsOptimizedForQuery (继承自 ModelStore。)
公共属性 Schema (继承自 ModelStore。)
公共属性 ScriptCache 获取用于缓存脚本的脚本缓存。 (继承自 DataSchemaModel。)
公共属性 SqlDatabaseSchemaProvider 获取此模型的数据库架构提供程序。
受保护的属性 ValidationEnabled 获取一个值,该值指示是否为此架构模型启用验证。
公共属性 WriteCount 返回当前写入计数的值。 (继承自 ModelStore。)

页首

方法

  名称 说明
公共方法 AddAnnotation 向模型中添加批注。 (继承自 ModelStore。)
公共方法 AddCustomData 向模型添加自定义数据。 (继承自 DataSchemaModel。)
受保护的方法 AddScriptCacheForFile
公共方法 BeginBatchUpdate 在批量更新操作开始时调用。 (重写 DataSchemaModel.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。)
受保护的方法 DeserializeExternalProperty 对 SqlSchemaModel 支持的任何外部属性进行反序列化。 (重写 ModelStore.DeserializeExternalProperty(XmlReader, ModelPropertyClass)。)
公共方法 Dispose() 释放模型。 (继承自 ModelStore。)
受保护的方法 Dispose(Boolean) 释放资源。 (重写 DataSchemaModel.Dispose(Boolean)。)
公共方法 EndBatchUpdate 在批量更新操作结束时调用。 (重写 DataSchemaModel.EndBatchUpdate()。)
公共方法 Equals 确定指定的 Object 是否等于当前的 Object。 (继承自 Object。)
受保护的方法 Finalize (继承自 ModelStore。)
受保护的方法 FixupAfterDeserialization 执行附加操作,以便在从 .dbmdl 文件进行反序列化后保证模型一致性。 (重写 ModelStore.FixupAfterDeserialization()。)
受保护的方法 FixupAfterXmlDeserialization 执行附加操作,以便在从 XML 文件进行反序列化后保证模型一致性。 (重写 DataSchemaModel.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() 获取自定义数据的列表。 (继承自 DataSchemaModel。)
公共方法 GetCustomData(String) 使用所提供的类别获取自定义数据的列表。 (继承自 DataSchemaModel。)
公共方法 GetCustomData(String, String) 使用所提供的类别和类型名称获取自定义数据的列表。 (继承自 DataSchemaModel。)
公共方法 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 从外部源获取元素。 (继承自 DataSchemaModel。)
受保护的方法 GetElementSources 为某一特定元素返回源信息。 (重写 DataSchemaModel.GetElementSources(IModelElement)。)
受保护的方法 GetExternalProperty<TProperty> 为指定的模型元素获取某一特定类的外部属性。 (重写 ModelStore.GetExternalProperty<TProperty>(IModelElement, ModelPropertyClass)。)
公共方法 GetHashCode 用作特定类型的哈希函数。 (继承自 Object。)
公共方法 GetIdentifier(ICollection<String>) (继承自 ModelStore。)
公共方法 GetIdentifier(array<String[]) 按范围 ID 和字符串从模型中获取标识符。 (继承自 ModelStore。)
公共方法 GetIdentifier(IList<String>, ICollection<String>) (继承自 ModelStore。)
公共方法 GetIdentifierHandleTarget (继承自 ModelStore。)
公共方法 GetObjectData 使用序列化当前 SqlSchemaModel 对象所需的数据来填充 [System.Runtime.Serialization.SerializationInfo] 对象。 (重写 DataSchemaModel.GetObjectData(SerializationInfo, StreamingContext)。)
受保护的方法 GetRelationshipEntrySources 为某一特定关系项返回源信息。 (重写 DataSchemaModel.GetRelationshipEntrySources(IModelRelationshipEntry)。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
受保护的方法 InitializeReferenceConstructor 在初始化引用构造函数时调用。 (重写 DataSchemaModel.InitializeReferenceConstructor(DataSchemaModelHeader, DataSchemaModelConstructor)。)
公共方法 IsOwnedChildObjectType 返回一个值,该值指示某一类型是否为架构绑定子对象。
公共方法静态成员 IsOwnedObjectType 返回一个值,该值指示某一类型是否为架构绑定对象。
公共方法 LoadExternals 从外部源加载模型元素,例如持久化模型。 (继承自 DataSchemaModel。)
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
受保护的方法 OnCustomDataAdded 重写此方法可对添加 SqlModelCapability 数据的操作进行处理。 (重写 DataSchemaModel.OnCustomDataAdded(CustomSchemaData)。)
受保护的方法 OnCustomDataRemoved 如果移除某一引用,则重写此方法可对移除多余名称(从标记为 AliasedToDbo 或 GloballyScoped 的元素移除)的操作进行处理。 (重写 DataSchemaModel.OnCustomDataRemoved(CustomSchemaData)。)
受保护的方法 OnModelElementChanged 模型元素更改时调用。 (继承自 DataSchemaModel。)
公共方法 OptimizeForInitialPopulation (继承自 ModelStore。)
公共方法 OptimizeForQuery (继承自 ModelStore。)
公共方法 RegisterForController 注册模型控制器。 (继承自 DataSchemaModel。)
公共方法 RemoveAnnotation 从模型中移除批注。 (继承自 ModelStore。)
公共方法 RemoveCustomData 移除自定义数据。 (继承自 DataSchemaModel。)
受保护的方法 RemoveScriptCacheForFile 移除与指定文件关联的脚本缓存。
公共方法 Resolve() 解析模型中的所有元素。 (重写 DataSchemaModel.Resolve()。)
公共方法 Resolve(Int32) 解析指定数量的元素。 (重写 DataSchemaModel.Resolve(Int32)。)
公共方法 Serialize(TextWriter) (继承自 DataSchemaModel。)
公共方法 Serialize(TextWriter, IEnumerable<Type>) (继承自 DataSchemaModel。)
公共方法 Serialize(TextWriter, IEnumerable<Type>, Boolean) 将数据架构模型写入指定的输出。 (继承自 DataSchemaModel。)
受保护的方法 SerializeExternalProperty 对 SqlSchemaModel 支持的任何外部属性进行序列化。 (重写 ModelStore.SerializeExternalProperty(XmlWriter, ModelPropertyClass, Object)。)
受保护的方法 SetExternalProperty<TProperty>(IModelElement, ModelPropertyClass, TProperty) (继承自 ModelStore。)
受保护的方法 SetExternalProperty<TProperty>(IModelElement, ModelPropertyClass, TProperty) (重写 ModelStore.SetExternalProperty<TProperty>(IModelElement, ModelPropertyClass, TProperty)。)
公共方法 TestWriteCount 使用给定的值测试写入计数。 (继承自 ModelStore。)
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)
公共方法 UnloadExternals 从指定的文件卸载外部元素。 (继承自 DataSchemaModel。)
受保护的方法 UpdateSourceNamePrefixes (继承自 ModelStore。)
受保护的方法 ValidateWriteAccess 验证写访问权限。 (继承自 DataSchemaModel。)
受保护的方法 ValidReferenceTranslator 返回一个值,该值指示引用转换器是否可用于从另一个数据库架构提供程序转换到当前提供程序。 (继承自 DataSchemaModel。)

页首

事件

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

页首

字段

  名称 说明
公共字段静态成员 AnsiNullsCategory 一个由架构模型使用的常量。
公共字段静态成员 ClrAssemblyIsCheckingDataDisabled 一个由架构模型使用的常量。
公共字段静态成员 ClrAssemblyIsVisible 一个由架构模型使用的常量。
公共字段静态成员 ClrAssemblyName 一个由架构模型使用的常量。
公共字段静态成员 ClrAssemblyOwner 一个由架构模型使用的常量。
公共字段静态成员 ClrAssemblyPermissionSet 一个由架构模型使用的常量。
公共字段静态成员 ClrAssemblyPermissionSetExternalAccess 一个由架构模型使用的常量。
公共字段静态成员 ClrAssemblyPermissionSetSafe 一个由架构模型使用的常量。
公共字段静态成员 ClrAssemblyPermissionSetUnsafe 一个由架构模型使用的常量。
公共字段静态成员 ClrAssemblyType 一个由架构模型使用的常量。
公共字段静态成员 CompatibilityModeCategory 一个由架构模型使用的常量。
公共字段静态成员 ModelCapabilityCategory 一个由架构模型使用的常量。
公共字段静态成员 PermissionsCategory 一个由架构模型使用的常量。
公共字段静态成员 PermissionsType 一个由架构模型使用的常量。
公共字段静态成员 QuotedIdentifierCategory 一个由架构模型使用的常量。
公共字段静态成员 XsdRelationalSchema 一个由架构模型使用的常量。
公共字段静态成员 XsdType 一个由架构模型使用的常量。
公共字段静态成员 XsdXmlSchemaCollectionName 一个由架构模型使用的常量。

页首

线程安全

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

请参见

参考

Microsoft.Data.Schema.Sql.SchemaModel 命名空间