SqlSchemaModel.SqlModelElement 类

表示 SQL Server 模型的架构模型元素。

继承层次结构

System.Object
  Microsoft.Data.Schema.SchemaModel.ModelElement
    Microsoft.Data.Schema.SchemaModel.DataSchemaModel.ScriptSourcedModelElement
      Microsoft.Data.Schema.Sql.SchemaModel.SqlSchemaModel.SqlModelElement

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

语法

声明
Protected MustInherit Class SqlModelElement _
    Inherits DataSchemaModel..::..ScriptSourcedModelElement _
    Implements ISqlModelElement, IScriptSourcedModelElement, IModelElement, IModelPropertyContainer,  _
    IModelEntity, IModelAnnotationHolder
protected abstract class SqlModelElement : DataSchemaModel..::..ScriptSourcedModelElement, 
    ISqlModelElement, IScriptSourcedModelElement, IModelElement, IModelPropertyContainer, IModelEntity, 
    IModelAnnotationHolder
protected ref class SqlModelElement abstract : public DataSchemaModel..::..ScriptSourcedModelElement, 
    ISqlModelElement, IScriptSourcedModelElement, IModelElement, IModelPropertyContainer, IModelEntity, 
    IModelAnnotationHolder
[<AbstractClass>]
type SqlModelElement =  
    class
        inherit DataSchemaModel..::..ScriptSourcedModelElement
        interface ISqlModelElement
        interface IScriptSourcedModelElement
        interface IModelElement
        interface IModelPropertyContainer
        interface IModelEntity
        interface IModelAnnotationHolder
    end
protected abstract class SqlModelElement extends DataSchemaModel..::..ScriptSourcedModelElement implements ISqlModelElement, IScriptSourcedModelElement, IModelElement, IModelPropertyContainer, IModelEntity, IModelAnnotationHolder

SqlSchemaModel.SqlModelElement 类型公开以下成员。

构造函数

  名称 说明
受保护的方法 SqlSchemaModel.SqlModelElement 初始化 SqlSchemaModel.SqlModelElement 类的新实例。

页首

属性

  名称 说明
公共属性 ElementClass 获取元素的 ElementClass 元数据。 (继承自 ModelElement。)
公共属性 Model 获取元素的 ModelStore。 (继承自 ModelElement。)
公共属性 Name 获取元素的标识符。 (继承自 ModelElement。)
公共属性 PrimarySource 获取用于定义此元素的主要源的位置。 (继承自 DataSchemaModel.ScriptSourcedModelElement。)
公共属性 ResolutionStatus 获取当前解析状态。 (继承自 ModelElement。)
公共属性 SecondarySources 获取用于定义此元素的辅助源的列表。 (继承自 DataSchemaModel.ScriptSourcedModelElement。)
公共属性 SourceCodePositions (继承自 ModelElement。)
公共属性 ValidationStatus 获取一个值,该值指示当前元素的验证状态。 (继承自 ModelElement。)

页首

方法

  名称 说明
公共方法 AddAnnotation 将所提供的 IModelAnnotation 对象添加到元素。 (继承自 ModelElement。)
公共方法 Delete 从架构模型中删除当前元素。 (继承自 ModelElement。)
公共方法 Equals 确定所提供的对象是否等于当前元素。 (继承自 ModelElement。)
受保护的方法 Finalize 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。)
公共方法 GetAnnotations() 获取已添加到此元素的批注的列表。 (继承自 ModelElement。)
公共方法 GetAnnotations(Type) 获取已添加到此元素的指定类型批注的列表。 (继承自 ModelElement。)
公共方法 GetAnnotations(ModelIdentifier) 获取已添加到指定元素(当前元素的子元素)的批注的列表。 (继承自 ModelElement。)
公共方法 GetAnnotations(ModelIdentifier, Type) 获取一个列表,其中包含已添加到当前元素指定子元素中的指定类型的批注。 (继承自 ModelElement。)
公共方法 GetComposingChildren 返回构成子元素的列表。 (继承自 ModelElement。)
公共方法 GetHashCode 用作特定类型的哈希函数。 (继承自 ModelElement。)
公共方法 GetHierarchicalChildren 获取层次结构子元素的列表。 (继承自 ModelElement。)
公共方法 GetMultiRelationship<TFrom, TTo> (继承自 ModelElement。)
公共方法 GetOwnerInfo 返回有关当前元素的所有者的信息。 (继承自 ModelElement。)
公共方法 GetProperty<TProperty> (继承自 ModelElement。)
公共方法 GetReferencedDanglingRelationshipEntries (继承自 ModelElement。)
公共方法 GetReferencedElements (继承自 ModelElement。)
公共方法 GetReferencedRelationshipEntries (继承自 ModelElement。)
公共方法 GetReferencingElements (继承自 ModelElement。)
公共方法 GetReferencingRelationshipEntries (继承自 ModelElement。)
公共方法 GetRelationship(ModelRelationshipClass) (继承自 ModelElement。)
公共方法 GetRelationshipEntrySources 返回关系项的关系项源的列表。 (继承自 DataSchemaModel.ScriptSourcedModelElement。)
公共方法 GetRelationships 返回元素中已注册关系的列表。 (继承自 ModelElement。)
公共方法 GetReverseMultiRelationship<TFrom, TTo> (继承自 ModelElement。)
公共方法 GetReverseSingleRelationship<TFrom, TTo> (继承自 ModelElement。)
公共方法 GetSingleRelationship<TFrom, TTo> (继承自 ModelElement。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
公共方法 IsDeleted 返回一个值,该值指示是否已删除当前元素。 (继承自 ModelElement。)
公共方法 IsExternal 返回一个值,该值指示是否从当前架构之外的源加载的当前元素。 (继承自 ModelElement。)
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
公共方法 RemoveAnnotation 从元素中移除指定的批注。 (继承自 ModelElement。)
公共方法 SetProperty<TProperty> (继承自 ModelElement。)
公共方法 ToString() 将元素转换为字符串。 (重写 DataSchemaModel.ScriptSourcedModelElement.ToString()。)
公共方法 ToString(String, IFormatProvider) 使用所提供的格式和格式提供程序返回元素名称。 (继承自 DataSchemaModel.ScriptSourcedModelElement。)

页首

线程安全

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

请参见

参考

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