Two entities are considered the same when their instances are the same.

Namespace: NHibernate.Type
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
public override bool IsSame(
	Object x,
	Object y,
	EntityMode entityMode
)
Visual Basic
Public Overrides Function IsSame ( _
	x As Object, _
	y As Object, _
	entityMode As EntityMode _
) As Boolean
Visual C++
public:
virtual bool IsSame(
	Object^ x, 
	Object^ y, 
	EntityMode entityMode
) override

Parameters

x
Type: System..::..Object
One entity instance
y
Type: System..::..Object
Another entity instance
entityMode
Type: NHibernate..::..EntityMode
The entity mode.

Return Value

True if x == y; false otherwise.

Implements

IType..::..IsSame(Object, Object, EntityMode)
IType..::..IsSame(Object, Object, EntityMode)

See Also