Exemple #1
0
 public bool EqualsWithoutId(CorAccount obj)
 {
     if (obj == null)
     {
         return(false);
     }
     return(CorAccountNumber == obj.CorAccountNumber &&
            InBank == obj.InBank);
 }
Exemple #2
0
        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);
        }