Поделиться через


SqlSchemaModel.SqlModelElement Class

Represents a schema model element for a SQL Server model.

Inheritance Hierarchy

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

Namespace:  Microsoft.Data.Schema.Sql.SchemaModel
Assembly:  Microsoft.Data.Schema.Sql (in Microsoft.Data.Schema.Sql.dll)

Syntax

'Declaration
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

The SqlSchemaModel.SqlModelElement type exposes the following members.

Constructors

  Name Description
Protected method SqlSchemaModel.SqlModelElement Initializes a new instance of the SqlSchemaModel.SqlModelElement class.

Top

Properties

  Name Description
Public property ElementClass Gets the ElementClass metadata for the element. (Inherited from ModelElement.)
Public property Model Gets the ModelStore for the element. (Inherited from ModelElement.)
Public property Name Gets the identifier for the element. (Inherited from ModelElement.)
Public property PrimarySource Gets the location of the primary source that defines this element. (Inherited from DataSchemaModel.ScriptSourcedModelElement.)
Public property ResolutionStatus Gets the current resolution status. (Inherited from ModelElement.)
Public property SecondarySources Gets a list of secondary sources that define this element. (Inherited from DataSchemaModel.ScriptSourcedModelElement.)
Public property SourceCodePositions (Inherited from ModelElement.)
Public property ValidationStatus Gets a value that indicates the validation status of the current element. (Inherited from ModelElement.)

Top

Methods

  Name Description
Public method AddAnnotation Adds the provided IModelAnnotation object to the element. (Inherited from ModelElement.)
Public method Delete Deletes the current element from the schema model. (Inherited from ModelElement.)
Public method Equals Determines whether a provided object is equal to the current element. (Inherited from ModelElement.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetAnnotations() Gets a list of annotations that have been added to this element. (Inherited from ModelElement.)
Public method GetAnnotations(Type) Gets a list of annotations of the specified type that have been added to this element. (Inherited from ModelElement.)
Public method GetAnnotations(ModelIdentifier) Gets a list of annotations that have been added to the specified element, which is a child element of the current element. (Inherited from ModelElement.)
Public method GetAnnotations(ModelIdentifier, Type) Gets a list of annotations of the specified type that have been added to the specified element that is a child of the current element. (Inherited from ModelElement.)
Public method GetComposingChildren Returns a list of child-composing elements. (Inherited from ModelElement.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from ModelElement.)
Public method GetHierarchicalChildren Gets a list of the child hierarchical child elements. (Inherited from ModelElement.)
Public method GetMultiRelationship<TFrom, TTo> (Inherited from ModelElement.)
Public method GetOwnerInfo Returns information about the owner of the current element. (Inherited from ModelElement.)
Public method GetProperty<TProperty> (Inherited from ModelElement.)
Public method GetReferencedDanglingRelationshipEntries (Inherited from ModelElement.)
Public method GetReferencedElements (Inherited from ModelElement.)
Public method GetReferencedRelationshipEntries (Inherited from ModelElement.)
Public method GetReferencingElements (Inherited from ModelElement.)
Public method GetReferencingRelationshipEntries (Inherited from ModelElement.)
Public method GetRelationship(ModelRelationshipClass) (Inherited from ModelElement.)
Public method GetRelationshipEntrySources Returns a list of relationship entry sources for a relationship entry. (Inherited from DataSchemaModel.ScriptSourcedModelElement.)
Public method GetRelationships Returns a list of relationships that are registered in the element. (Inherited from ModelElement.)
Public method GetReverseMultiRelationship<TFrom, TTo> (Inherited from ModelElement.)
Public method GetReverseSingleRelationship<TFrom, TTo> (Inherited from ModelElement.)
Public method GetSingleRelationship<TFrom, TTo> (Inherited from ModelElement.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method IsDeleted Returns a value that indicates whether the current element has been deleted. (Inherited from ModelElement.)
Public method IsExternal Returns a value that indicates whether the current element has been loaded from a source outside the current schema. (Inherited from ModelElement.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method RemoveAnnotation Removes the specified annotation from the element. (Inherited from ModelElement.)
Public method SetProperty<TProperty> (Inherited from ModelElement.)
Public method ToString() Converts the element to a string. (Overrides DataSchemaModel.ScriptSourcedModelElement.ToString().)
Public method ToString(String, IFormatProvider) Returns the element name by using the provided format and format provider. (Inherited from DataSchemaModel.ScriptSourcedModelElement.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Data.Schema.Sql.SchemaModel Namespace