Database.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 database is equal to the current database.

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

Syntax

'Declaration
<EditorBrowsableAttribute(EditorBrowsableState.Never)> _
Public Overrides Function Equals ( _
    obj As Object _
) As Boolean
'Usage
Dim instance As Database 
Dim obj As Object 
Dim returnValue As Boolean 

returnValue = instance.Equals(obj)
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
public override bool Equals(
    Object obj
)
[EditorBrowsableAttribute(EditorBrowsableState::Never)]
public:
virtual bool Equals(
    Object^ obj
) override
[<EditorBrowsableAttribute(EditorBrowsableState.Never)>]
abstract Equals : 
        obj:Object -> bool 
[<EditorBrowsableAttribute(EditorBrowsableState.Never)>]
override Equals : 
        obj:Object -> bool
public override function Equals(
    obj : Object
) : boolean

Parameters

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

Return Value

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

See Also

Reference

Database Class

System.Data.Entity Namespace