예제 #1
0
        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);
        }
예제 #2
0
 public DepartmentPhone()
 {
     this._DepartmentPhoneID = new DepartmentPhoneType();
     OnCreated();
 }