public override bool Equals(object obj) { DepartmentKeyType toCompare = obj as DepartmentKeyType; if (toCompare == null) { return(false); } if (!Object.Equals(this.DepartmentId, toCompare.DepartmentId)) { return(false); } if (!Object.Equals(this.PhoneID, toCompare.PhoneID)) { return(false); } return(true); }
public DepartmentPhone() { this._DepartmentKey = new DepartmentKeyType(); this._Employees = new Iesi.Collections.Generic.HashedSet <Employee>(); OnCreated(); }