DbEntityEntry.Equals 方法 (DbEntityEntry)
[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]
判斷指定的 DbEntityEntry 是否等於此執行個體。 如果兩個 DbEntityEntry 執行個體是相同 DbContext 上相同實體的項目,這兩者會視為相同。
命名空間: System.Data.Entity.Infrastructure
組件: EntityFramework (在 EntityFramework.dll 中)
語法
'宣告
<EditorBrowsableAttribute(EditorBrowsableState.Never)> _
Public Function Equals ( _
other As DbEntityEntry _
) As Boolean
'用途
Dim instance As DbEntityEntry
Dim other As DbEntityEntry
Dim returnValue As Boolean
returnValue = instance.Equals(other)
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
public bool Equals(
DbEntityEntry other
)
[EditorBrowsableAttribute(EditorBrowsableState::Never)]
public:
bool Equals(
DbEntityEntry^ other
)
[<EditorBrowsableAttribute(EditorBrowsableState.Never)>]
member Equals :
other:DbEntityEntry -> bool
public function Equals(
other : DbEntityEntry
) : boolean
參數
- other
類型:System.Data.Entity.Infrastructure.DbEntityEntry
要與此執行個體相比較的 DbEntityEntry。
傳回值
類型:System.Boolean
如果指定的 true 和此執行個體相等,則為 DbEntityEntry,否則為 false。