ModelElement Class
Provides a base class for schema model elements that are supported by a specific database schema provider.
Inheritance Hierarchy
System.Object
Microsoft.Data.Schema.SchemaModel.ModelElement
Microsoft.Data.Schema.SchemaModel.DataSchemaModel.ScriptSourcedModelElement
Namespace: Microsoft.Data.Schema.SchemaModel
Assembly: Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)
Syntax
'Declaration
Public MustInherit Class ModelElement _
Implements IModelElement, IModelPropertyContainer, IModelEntity, IModelAnnotationHolder
public abstract class ModelElement : IModelElement,
IModelPropertyContainer, IModelEntity, IModelAnnotationHolder
public ref class ModelElement abstract : IModelElement,
IModelPropertyContainer, IModelEntity, IModelAnnotationHolder
[<AbstractClass>]
type ModelElement =
class
interface IModelElement
interface IModelPropertyContainer
interface IModelEntity
interface IModelAnnotationHolder
end
public abstract class ModelElement implements IModelElement, IModelPropertyContainer, IModelEntity, IModelAnnotationHolder
The ModelElement type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ModelElement | Initializes a new instance of the ModelElement class. |
Top
Properties
Name | Description | |
---|---|---|
ElementClass | Gets the ElementClass metadata for the element. | |
Model | Gets the ModelStore for the element. | |
Name | Gets the identifier for the element. | |
ResolutionStatus | Gets the current resolution status. | |
SourceCodePositions | ||
ValidationStatus | Gets a value that indicates the validation status of the current element. |
Top
Methods
Name | Description | |
---|---|---|
AddAnnotation | Adds the provided IModelAnnotation object to the element. | |
Delete | Deletes the current element from the schema model. | |
Equals | Determines whether a provided object is equal to the current element. (Overrides Object.Equals(Object).) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetAnnotations() | Gets a list of annotations that have been added to this element. | |
GetAnnotations(Type) | Gets a list of annotations of the specified type that have been added to this element. | |
GetAnnotations(ModelIdentifier) | Gets a list of annotations that have been added to the specified element, which is a child element of the current element. | |
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. | |
GetAnnotations<TType>() | Gets a list of annotations of the provided type that are attached to the current element. | |
GetAnnotations<TType>(ModelIdentifier) | Gets a list of annotations that are attached to the specified element and whose type matches the provided Type. | |
GetComposingChildren | Returns a list of child-composing elements. | |
GetHashCode | Serves as a hash function for a particular type. (Overrides Object.GetHashCode().) | |
GetHierarchicalChildren | Gets a list of the child hierarchical child elements. | |
GetMultiRelationship<TFrom, TTo> | ||
GetOwnerInfo | Returns information about the owner of the current element. | |
GetProperty<TProperty> | ||
GetReferencedDanglingRelationshipEntries | ||
GetReferencedElements | ||
GetReferencedRelationshipEntries | ||
GetReferencingElements | ||
GetReferencingRelationshipEntries | ||
GetRelationship(ModelRelationshipClass) | ||
GetRelationship<TFrom, TTo>(ModelRelationshipClass) | ||
GetRelationships | Returns a list of relationships that are registered in the element. | |
GetReverseMultiRelationship<TFrom, TTo> | ||
GetReverseSingleRelationship<TFrom, TTo> | ||
GetSingleRelationship<TFrom, TTo> | ||
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsDeleted | Returns a value that indicates whether the current element has been deleted. | |
IsExternal | Returns a value that indicates whether the current element has been loaded from a source outside the current schema. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
RegisterElementClass<TElement> | ||
RegisterExternalPropertyClass<TProperty> | ||
RegisterPropertyClass<TProperty> | ||
RegisterRelationshipClass<TReferencedInterface>(ModelElementClass, String, ModelRelationshipType, ModelRelationshipCardinalityStyle, Boolean) | ||
RegisterRelationshipClass<TReferencedInterface>(ModelElementClass, String, ModelRelationshipType, ModelRelationshipCardinalityStyle, Boolean, Boolean) | ||
RegisterReverseRelationshipClass<TReferencedInterface> | ||
RemoveAnnotation | Removes the specified annotation from the element. | |
SetProperty<TProperty> | ||
ToString | Returns a string that represents the current object. (Inherited from Object.) |
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
SqlModelElement