public virtual bool Equals(ContractAccountBase toObject) { if (toObject == null) { return(false); } return(Equals(this, toObject)); }
public ContractAccountKey(ContractAccountBase entity) { this.Entity = entity; if (entity != null) { this.contractAccountCode = entity.ContractAccountCode; } }
public static bool Equals(ContractAccountBase Object1, ContractAccountBase Object2) { if ((Object1 == null) && (Object2 == null)) { return(true); } if ((Object1 == null) ^ (Object2 == null)) { return(false); } bool flag = true; if (Object1.ContractAccountCode != Object2.ContractAccountCode) { flag = false; } if ((Object1.ContractAccountID != null) && (Object2.ContractAccountID != null)) { if (Object1.ContractAccountID != Object2.ContractAccountID) { flag = false; } } else if ((Object1.ContractAccountID == null) ^ (Object2.ContractAccountID == null)) { flag = false; } if ((Object1.ContractCode != null) && (Object2.ContractCode != null)) { if (Object1.ContractCode != Object2.ContractCode) { flag = false; } } else if ((Object1.ContractCode == null) ^ (Object2.ContractCode == null)) { flag = false; } if ((Object1.Reason != null) && (Object2.Reason != null)) { if (Object1.Reason != Object2.Reason) { flag = false; } } else if ((Object1.Reason == null) ^ (Object2.Reason == null)) { flag = false; } if (Object1.Status.HasValue && Object2.Status.HasValue) { if (Object1.Status != Object2.Status) { flag = false; } } else if (!Object1.Status.HasValue ^ !Object2.Status.HasValue) { flag = false; } if (Object1.CreateDate.HasValue && Object2.CreateDate.HasValue) { if (Object1.CreateDate != Object2.CreateDate) { flag = false; } } else if (!Object1.CreateDate.HasValue ^ !Object2.CreateDate.HasValue) { flag = false; } if ((Object1.CreatePerson != null) && (Object2.CreatePerson != null)) { if (Object1.CreatePerson != Object2.CreatePerson) { flag = false; } } else if ((Object1.CreatePerson == null) ^ (Object2.CreatePerson == null)) { flag = false; } if ((Object1.ContractChangeCode != null) && (Object2.ContractChangeCode != null)) { if (Object1.ContractChangeCode != Object2.ContractChangeCode) { flag = false; } return(flag); } if ((Object1.ContractChangeCode == null) ^ (Object2.ContractChangeCode == null)) { flag = false; } return(flag); }