public override bool Equals(object obj) { DepartmentPhoneType toCompare = obj as DepartmentPhoneType; 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._DepartmentPhoneID = new DepartmentPhoneType(); OnCreated(); }