public virtual bool Equals(ContractCostPlanBase toObject) { if (toObject == null) { return(false); } return(Equals(this, toObject)); }
public ContractCostPlanKey(ContractCostPlanBase entity) { this.Entity = entity; if (entity != null) { this.contractCostPlanCode = entity.ContractCostPlanCode; } }
public static bool Equals(ContractCostPlanBase Object1, ContractCostPlanBase Object2) { if ((Object1 == null) && (Object2 == null)) { return(true); } if ((Object1 == null) ^ (Object2 == null)) { return(false); } bool flag = true; if (Object1.ContractCostPlanCode != Object2.ContractCostPlanCode) { flag = false; } if ((Object1.ContractCostCode != null) && (Object2.ContractCostCode != null)) { if (Object1.ContractCostCode != Object2.ContractCostCode) { flag = false; } } else if ((Object1.ContractCostCode == null) ^ (Object2.ContractCostCode == 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.Money.HasValue && Object2.Money.HasValue) { if (Object1.Money != Object2.Money) { flag = false; } } else if (!Object1.Money.HasValue ^ !Object2.Money.HasValue) { flag = false; } if (Object1.PlanningPayDate.HasValue && Object2.PlanningPayDate.HasValue) { if (Object1.PlanningPayDate != Object2.PlanningPayDate) { flag = false; } } else if (!Object1.PlanningPayDate.HasValue ^ !Object2.PlanningPayDate.HasValue) { flag = false; } if ((Object1.PayConditionText != null) && (Object2.PayConditionText != null)) { if (Object1.PayConditionText != Object2.PayConditionText) { flag = false; } return(flag); } if ((Object1.PayConditionText == null) ^ (Object2.PayConditionText == null)) { flag = false; } return(flag); }