Share via


DbContext.Equals Method

[This page is specific to the Entity Framework version 6. The latest version is available as the 'Entity Framework' NuGet package. For more information about Entity Framework, see msdn.com/data/ef.]

Determines whether the specified DbContext is equal to the current DbContext.

Namespace:  System.Data.Entity
Assembly:  EntityFramework (in EntityFramework.dll)

Syntax

[EditorBrowsableAttribute(EditorBrowsableState.Never)]
public override bool Equals(
    Object obj
)

Parameters

  • obj
    Type: System.Object
    The DbContext to compare to the current DbContext.

Return Value

Type: System.Boolean
true if the specified DbContext is equal to the current DbContext; otherwise, false.

See Also

Reference

DbContext Class

System.Data.Entity Namespace