/// <summary> /// CopyValue 方法 /// </summary> public virtual void CopyValue(SystemMenuBase obj) { obj.MenuName = this._menu_name; obj.MenuDescription = this._menu_description; obj.MenuUrl = this._menu_url; obj.MenuUrlTarget = this._menu_urltarget; obj.MenuIsCategory = this._menu_iscategory; obj.ParentMenuID = this._parentmenu_id; obj.MenuOrder = this._menu_order; obj.MenuType = this._menu_type; obj.MenuIsSystemMenu = this._menu_issystemmenu; obj.MenuIsEnable = this._menu_isenable; obj.ApplicationID = this._applicationid; }
/// <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); } SystemMenuBase castObj = (SystemMenuBase)obj; return((castObj != null) && (this._menu_id == castObj.MenuID)); }