/// <summary> /// CopyValue 方法 /// </summary> public virtual void CopyValue(SystemDepartmentBase obj) { obj.ParentDepartmentID = this._parent_department_id; obj.DepartmentNameCn = this._department_namecn; obj.DepartmentNameEn = this._department_nameen; obj.DepartmentDecription = this._department_decription; }
/// <summary> /// local implementation of Equals based on unique value members /// </summary> public override bool Equals(object obj) { if (this == obj) { return(true); } if ((obj == null) || (obj.GetType() != this.GetType())) { return(false); } SystemDepartmentBase castObj = (SystemDepartmentBase)obj; return((castObj != null) && (this._department_id == castObj.DepartmentID)); }