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