針對特定資料庫結構描述提供者所支援的結構描述模型項目,提供基底類別。
繼承階層架構
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 型別會公開下列成員。
建構函式
回頁首
屬性
回頁首
方法
.gif) |
AddAnnotation |
將提供的 IModelAnnotation 物件加入至項目。 |
.gif) |
Delete |
從結構描述模型刪除目前項目。 |
.gif) |
Equals |
判斷提供的物件和目前的項目是否相等。 (覆寫 Object.Equals(Object)。) |
.gif) |
Finalize |
允許物件在記憶體回收進行回收之前,嘗試釋放資源並執行其他清除作業。 (繼承自 Object)。 |
.gif) |
GetAnnotations() |
取得已加入至這個項目的附註清單。 |
.gif) |
GetAnnotations(Type) |
取得已加入至這個項目之指定型別的附註清單。 |
.gif) |
GetAnnotations(ModelIdentifier) |
取得已加入至指定之項目的附註清單,而這個項目是目前項目的子項目。 |
.gif) |
GetAnnotations(ModelIdentifier, Type) |
取得指定之型別的附註清單,而這些附註已加入至目前項目內指定的子項目。 |
.gif) |
GetAnnotations<TType>() |
取得所提供之型別的附註清單,而這些附註已附加至目前項目。 |
.gif) |
GetAnnotations<TType>(ModelIdentifier) |
取得附註的清單,這些附註已附加至指定的項目,且其型別符合提供的 Type。 |
.gif) |
GetComposingChildren |
傳回子系組成項目的清單。 |
.gif) |
GetHashCode |
做為特定型別的雜湊函式。 (覆寫 Object.GetHashCode()。) |
.gif) |
GetHierarchicalChildren |
取得子系階層式子項目的清單。 |
.gif) |
GetMultiRelationship<TFrom, TTo> |
|
.gif) |
GetOwnerInfo |
傳回目前項目之擁有者的相關資訊。 |
.gif) |
GetProperty<TProperty> |
|
.gif) |
GetReferencedDanglingRelationshipEntries |
|
.gif) |
GetReferencedElements |
|
.gif) |
GetReferencedRelationshipEntries |
|
.gif) |
GetReferencingElements |
|
.gif) |
GetReferencingRelationshipEntries |
|
.gif) |
GetRelationship(ModelRelationshipClass) |
|
.gif) |
GetRelationship<TFrom, TTo>(ModelRelationshipClass) |
|
.gif) |
GetRelationships |
傳回項目中已註冊的關聯性清單。 |
.gif) |
GetReverseMultiRelationship<TFrom, TTo> |
|
.gif) |
GetReverseSingleRelationship<TFrom, TTo> |
|
.gif) |
GetSingleRelationship<TFrom, TTo> |
|
.gif) |
GetType |
取得目前執行個體的 Type。 (繼承自 Object)。 |
.gif) |
IsDeleted |
傳回值,這個值表示是否已刪除目前項目。 |
.gif) |
IsExternal |
傳回值,這個值表示目前項目是否從目前結構描述以外的來源載入。 |
.gif) |
MemberwiseClone |
建立目前 Object 的淺層複本 (Shallow Copy)。 (繼承自 Object)。 |
.gif) .gif) |
RegisterElementClass<TElement> |
|
.gif) .gif) |
RegisterExternalPropertyClass<TProperty> |
|
.gif) .gif) |
RegisterPropertyClass<TProperty> |
|
.gif) .gif) |
RegisterRelationshipClass<TReferencedInterface>(ModelElementClass, String, ModelRelationshipType, ModelRelationshipCardinalityStyle, Boolean) |
|
.gif) .gif) |
RegisterRelationshipClass<TReferencedInterface>(ModelElementClass, String, ModelRelationshipType, ModelRelationshipCardinalityStyle, Boolean, Boolean) |
|
.gif) .gif) |
RegisterReverseRelationshipClass<TReferencedInterface> |
|
.gif) |
RemoveAnnotation |
從項目移除指定的附註。 |
.gif) |
SetProperty<TProperty> |
|
.gif) |
ToString |
傳回表示目前物件的字串。 (繼承自 Object)。 |
回頁首
執行緒安全
這個型別的任何 Public static (在 Visual Basic 中為 Shared) 成員都具備執行緒安全。並非所有的執行個體成員都是安全執行緒。
請參閱
參考
Microsoft.Data.Schema.SchemaModel 命名空間
SqlModelElement