/// <summary> /// Equality method between two objects of the same type. /// Because the Equals method is strongly typed by generic constraints, /// it is not necessary to test for the correct object type. /// For safety we just want to match on business key value - in this case the fields /// that cannot be different between the two objects if they are supposedly equal. /// </summary> /// <param name="obj">The other object of this type that we are testing equality with</param> /// <returns></returns> public virtual bool Equals(CreateUpdateInputDtoBase <TIdType> obj) { if (obj != null) { return(Id.Equals(obj.Id) && Culture.Equals(obj.Culture) && DescriptionShort.Equals(obj.DescriptionShort) && Name.Equals(obj.Name) && TranslatedFromId.Equals(obj.TranslatedFromId) ); } return(false); }
/// <summary> /// Equality method between two objects of the same type. /// Because the Equals method is strongly typed by generic constraints, /// it is not necessary to test for the correct object type. /// For safety we just want to match on business key value - in this case the fields /// that cannot be different between the two objects if they are supposedly equal. /// </summary> /// <param name="obj">The other object of this type that we are testing equality with</param> /// <returns></returns> public virtual bool Equals(GetDetailOutputDtoBase <TIdType> obj) { if (obj != null) { return(Id.Equals(obj.Id) && Culture.Equals(obj.Culture) && DescriptionShort.Equals(obj.DescriptionShort) && CreationTime.Equals(obj.CreationTime) && CreatorUserName.Equals(obj.CreatorUserName) && LastModifierUserName.Equals(obj.LastModifierUserName) && LastModificationTime.Equals(obj.LastModificationTime) ); } return(false); }
/// <summary> /// Equality method between two objects of the same type. /// Because the Equals method is strongly typed by generic constraints, /// it is not necessary to test for the correct object type. /// For safety we just want to match on business key value - in this case the fields /// that cannot be different between the two objects if they are supposedly equal. /// </summary> /// <param name="obj">The other object of this type that we are testing equality with</param> /// <returns></returns> public virtual bool Equals(GetAllInputDtoBase <TIdType> obj) { if (obj != null) { return(Name.Equals(obj.Name) && Culture.Equals(obj.Culture) && TenantId.Equals(obj.TenantId) && DescriptionShort.Equals(obj.DescriptionShort) && DescriptionFull.Equals(obj.DescriptionFull) && IsActive.Equals(obj.IsActive) && CreationTime.Equals(obj.CreationTime) && CreatorUserName.Equals(obj.CreatorUserName) && LastModifierUserName.Equals(obj.LastModifierUserName) && LastModificationTime.Equals(obj.LastModificationTime) ); } return(false); }
/// <summary> /// Equality method between two objects of the same type. /// Because the Equals method is strongly typed by generic constraints, /// it is not necessary to test for the correct object type. /// </summary> /// <param name="obj">The other object of this type we are testing equality with</param> /// <returns>True if the objects are equal in value</returns> public virtual bool Equals(MetadataInformation obj) { // If parameter is null, return false. if (obj is null) { return(false); } // Optimization for a common success case. if (ReferenceEquals(this, obj)) { return(true); } // If run-time types are not exactly the same, return false. if (this.GetType() != obj.GetType()) { return(false); } // Return true if the fields match. // Note that the base class is not invoked because it is // System.Object, which defines Equals as reference equality. return ( TenantId.Equals(obj.TenantId) && CreatorUserId.Equals(obj.CreatorUserId) && Name.Equals(obj.Name) && DescriptionFull.Equals(obj.DescriptionFull) && DescriptionShort.Equals(obj.DescriptionShort) && LastModifierUserId.Equals(obj.LastModifierUserId) && CreationTime.Equals(obj.CreationTime) && LastModificationTime.Equals(obj.LastModificationTime) && IsDeleted.Equals(obj.IsDeleted) && IsActive.Equals(obj.IsActive) ) ; }