TechTalk Genome Wire Object Protocol v4.2

WopDtoAttribute.GenerateEqualsMethod Property

Gets or sets the value specifying if a value comparation method ("ValueEquals") has to be generated in the DTO class.

public bool GenerateEqualsMethod {get; set;}

Property Value

true if the "ValueEquals" method has to be overriden, false otherwise. The default value is true.

Remarks

The "ValueEquals" method can be used to compare a DTO object to another one. The comparation is not sensitive to the collection properties and the view used to serialize the singular references. Also a "GetValueHashCode" method is generated together with the "ValueEquals" which provides hash code for the value equality.

If the dto-base-class specified in the project file contains public virtual methods with these names, the generated methods will override the methods on the base class.

Requirements

Namespace: TechTalk.Genome.Wop

Assembly: TechTalk.Genome.Wop (in TechTalk.Genome.Wop.dll)

Version: 4.2.11.59

Editions: Professional, Community, Evaluation

See Also

WopDtoAttribute Class | TechTalk.Genome.Wop Namespace