共用方式為


MetadataWorkspace.GetRelevantMembersForUpdate 方法

[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]

傳回所指定 EntitySet / EntityType 的成員,修改實體時需要這些成員的原始值。

命名空間:  System.Data.Entity.Core.Metadata.Edm
組件:  EntityFramework (在 EntityFramework.dll 中)

語法

'宣告
Public Overridable Function GetRelevantMembersForUpdate ( _
    entitySet As EntitySetBase, _
    entityType As EntityTypeBase, _
    partialUpdateSupported As Boolean _
) As ReadOnlyCollection(Of EdmMember)
'用途
Dim instance As MetadataWorkspace 
Dim entitySet As EntitySetBase 
Dim entityType As EntityTypeBase 
Dim partialUpdateSupported As Boolean 
Dim returnValue As ReadOnlyCollection(Of EdmMember)

returnValue = instance.GetRelevantMembersForUpdate(entitySet, _
    entityType, partialUpdateSupported)
public virtual ReadOnlyCollection<EdmMember> GetRelevantMembersForUpdate(
    EntitySetBase entitySet,
    EntityTypeBase entityType,
    bool partialUpdateSupported
)
public:
virtual ReadOnlyCollection<EdmMember^>^ GetRelevantMembersForUpdate(
    EntitySetBase^ entitySet, 
    EntityTypeBase^ entityType, 
    bool partialUpdateSupported
)
abstract GetRelevantMembersForUpdate : 
        entitySet:EntitySetBase * 
        entityType:EntityTypeBase * 
        partialUpdateSupported:bool -> ReadOnlyCollection<EdmMember> 
override GetRelevantMembersForUpdate : 
        entitySet:EntitySetBase * 
        entityType:EntityTypeBase * 
        partialUpdateSupported:bool -> ReadOnlyCollection<EdmMember> 
public function GetRelevantMembersForUpdate(
    entitySet : EntitySetBase, 
    entityType : EntityTypeBase, 
    partialUpdateSupported : boolean
) : ReadOnlyCollection<EdmMember>

參數

  • partialUpdateSupported
    類型:System.Boolean
    如果實體可部分更新則為 true,否則為 false。

傳回值

類型:System.Collections.ObjectModel.ReadOnlyCollection<EdmMember>
需要其原始值的 EdmMember

請參閱

參考

MetadataWorkspace 類別

System.Data.Entity.Core.Metadata.Edm 命名空間