/// <summary> /// Determines whether the specified object is equal to the current object. /// </summary> /// <param name="obj">The object to compare with the current object.</param> /// <returns>true if the specified object is equal to the current object; otherwise, false.</returns> public override bool Equals(object obj) { var result = false; if (obj is IdentityDTO item) { result = ID == item.ID; result &= GUID.Equals(item.GUID); result &= Name.Equals(item.Name); result &= Surname.Equals(item.Surname); result &= Midname.Equals(item.Midname); result &= Birthdate.Equals(item.Birthdate); result &= Gender.Equals(item.Gender); result &= Country.Equals(item.Country); result &= City.Equals(item.City); result &= Phone.Equals(item.Phone); result &= Email.Equals(item.Email); result &= Department.Equals(item.Department); result &= Group.Equals(item.Group); result &= Status.Equals(item.Status); result &= Role.Equals(item.Role); return(result); } return(false); }
public virtual bool Equals(IBaseDto dto) { var result = false; if (dto.GetType() == typeof(BaseFilmPersonDto)) { var that = (BaseFilmPersonDto)dto; result = Title.Equals(that.Title) && Year.Equals(that.Year) && LastName.Equals(that.LastName) && Birthdate.Equals(that.Birthdate) && Role.Equals(that.Role); } return(result); }
public bool CheckEmptyColumns() { if (FirstName.Equals("") || LastName.Equals("") || SNumber.Equals("") || Birthdate.Equals("") || MomName.Equals("") || DadName.Equals("") || studies.Mode.Equals("") || studies.Name.Equals("")) { return(true); } return(false); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (GetType() != obj.GetType()) { return(false); } var user = (User)obj; if (Id != user.Id) { return(false); } if (!Cpf.Equals(user.Cpf)) { return(false); } if (!Name.Equals(user.Name)) { return(false); } if (!Birthdate.Equals(user.Birthdate)) { return(false); } if (!Password.Equals(user.Password)) { return(false); } if (Income != user.Income) { return(false); } return(true); }
public override bool Equals(System.Object obj) { if (obj == null || GetType() != obj.GetType()) { return(false); } User user = (User)obj; return(Email.Equals(user.Email) && Address.Equals(user.Address) && Profession.Equals(user.Profession) && Privilege.Equals(user.Privilege) && Username.Equals(user.Username) && GivenName.Equals(user.GivenName) && Surname.Equals(user.Surname) && Birthdate.Equals(user.Birthdate) && Gender.Equals(user.Gender) && CultureInfo.Equals(user.CultureInfo) && City.Equals(user.City) && Country.Equals(user.Country) && Latitude.Equals(user.Latitude) && Longitude.Equals(user.Longitude)); }
public bool Equals(Patient other) { return(string.Equals(FirstName, other.FirstName) && string.Equals(LastName, other.LastName) && Birthdate.Equals(other.Birthdate)); }