ModelElement 类
本文内容
为特定数据库架构提供程序支持的架构模型元素提供基类。
继承层次结构
System.Object
Microsoft.Data.Schema.SchemaModel.ModelElement
Microsoft.Data.Schema.SchemaModel.DataSchemaModel.ScriptSourcedModelElement
命名空间: Microsoft.Data.Schema.SchemaModel
程序集: Microsoft.Data.Schema(在 Microsoft.Data.Schema.dll 中)
语法
声明
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
ModelElement 类型公开以下成员。
构造函数
页首
属性
页首
方法
AddAnnotation
将所提供的 IModelAnnotation 对象添加到元素。
Delete
从架构模型中删除当前元素。
Equals
确定所提供的对象是否等于当前元素。 (重写 Object.Equals(Object) 。)
Finalize
允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object 。)
GetAnnotations()
获取已添加到此元素的批注的列表。
GetAnnotations(Type)
获取已添加到此元素的指定类型批注的列表。
GetAnnotations(ModelIdentifier)
获取已添加到指定元素(当前元素的子元素)的批注的列表。
GetAnnotations(ModelIdentifier, Type)
获取一个列表,其中包含已添加到当前元素指定子元素中的指定类型的批注。
GetAnnotations<TType>()
获取附加到当前元素的所提供类型的批注的列表。
GetAnnotations<TType>(ModelIdentifier)
获取附加到指定元素且其类型与所提供的 Type 匹配的批注的列表。
GetComposingChildren
返回构成子元素的列表。
GetHashCode
用作特定类型的哈希函数。 (重写 Object.GetHashCode() 。)
GetHierarchicalChildren
获取层次结构子元素的列表。
GetMultiRelationship<TFrom, TTo>
GetOwnerInfo
返回有关当前元素的所有者的信息。
GetProperty<TProperty>
GetReferencedDanglingRelationshipEntries
GetReferencedElements
GetReferencedRelationshipEntries
GetReferencingElements
GetReferencingRelationshipEntries
GetRelationship(ModelRelationshipClass)
GetRelationship<TFrom, TTo>(ModelRelationshipClass)
GetRelationships
返回元素中已注册关系的列表。
GetReverseMultiRelationship<TFrom, TTo>
GetReverseSingleRelationship<TFrom, TTo>
GetSingleRelationship<TFrom, TTo>
GetType
获取当前实例的 Type 。 (继承自 Object 。)
IsDeleted
返回一个值,该值指示是否已删除当前元素。
IsExternal
返回一个值,该值指示是否从当前架构之外的源加载的当前元素。
MemberwiseClone
创建当前 Object 的浅表副本。 (继承自 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
从元素中移除指定的批注。
SetProperty<TProperty>
ToString
返回表示当前对象的字符串。 (继承自 Object 。)
页首
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。
请参见
参考
Microsoft.Data.Schema.SchemaModel 命名空间
SqlModelElement