Share via


DataSchemaModel.ScriptSourcedModelElement Class

Provides a base class for all model elements that have a script source.

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.SchemaModel
Assembly:  Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)

Syntax

'Declaration
Protected MustInherit Class ScriptSourcedModelElement _
    Inherits ModelElement _
    Implements IScriptSourcedModelElement, IModelElement, IModelPropertyContainer, IModelEntity,  _
    IModelAnnotationHolder, IFormattable
protected abstract class ScriptSourcedModelElement : ModelElement, 
    IScriptSourcedModelElement, IModelElement, IModelPropertyContainer, IModelEntity, IModelAnnotationHolder, 
    IFormattable
protected ref class ScriptSourcedModelElement abstract : public ModelElement, 
    IScriptSourcedModelElement, IModelElement, IModelPropertyContainer, IModelEntity, IModelAnnotationHolder, 
    IFormattable
[<AbstractClass>]
type ScriptSourcedModelElement =  
    class
        inherit ModelElement
        interface IScriptSourcedModelElement
        interface IModelElement
        interface IModelPropertyContainer
        interface IModelEntity
        interface IModelAnnotationHolder
        interface IFormattable
    end
protected abstract class ScriptSourcedModelElement extends ModelElement implements IScriptSourcedModelElement, IModelElement, IModelPropertyContainer, IModelEntity, IModelAnnotationHolder, IFormattable

The DataSchemaModel.ScriptSourcedModelElement type exposes the following members.

Constructors

  Name Description
Protected method DataSchemaModel.ScriptSourcedModelElement Initializes a new instance of the DataSchemaModel.ScriptSourcedModelElement 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.
Public property ResolutionStatus Gets the current resolution status. (Inherited from ModelElement.)
Public property SecondarySources Gets a list of secondary sources that define this element.
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.
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() Returns the element name. (Overrides Object.ToString().)
Public method ToString(String, IFormatProvider) Returns the element name by using the provided format and format provider.

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.SchemaModel Namespace

ModelElement

IScriptSourcedModelElement

IModelPropertyContainer

IModelEntity

IModelAnnotationHolder

IFormattable