EntityCoreTFieldsEquals Method |
Compares passed in object with the given object. This is a compare of PK fields. These have to be the same in VALUES.
When the values are not the same, or the type is not the same as the current type, false is returned, true otherwise.
When this doesn't have any PK fields, all fields are compared. null values are considered as the same value.
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.1.0.0 (5.1.0)
Syntax public override bool Equals(
Object obj
)
Public Overrides Function Equals (
obj As Object
) As Boolean
Parameters
- obj
- Type: SystemObject
IEntityCore implementing object of the same type as this which will be compared to the PK values of this.
Return Value
Type:
BooleanTrue when the PK values of this are the same as the PK values of obj, or when this doesn't have any PK fields, all fields
have the same value as obj's fields. False otherwise.
Remarks If this entity or the passed in entity is new, no values are compared, but the physical objects are compared (object.Equals()),
because new entities can look the same, value wise due to identity fields which are all 0, however which are physical different entities
(object wise)
See Also