public bool EqualsWithoutId(CorAccount obj) { if (obj == null) { return(false); } return(CorAccountNumber == obj.CorAccountNumber && InBank == obj.InBank); }
public override bool Equals(object obj) { CorAccount compareCorAccount = obj as CorAccount; if (compareCorAccount == null) { return(false); } return(CorAccountNumber == compareCorAccount.CorAccountNumber && Id == compareCorAccount.Id && InBank.Id == compareCorAccount.InBank.Id); }