Beispiel #1
0
 /// <summary>
 /// CopyValue 方法
 /// </summary>
 public virtual void CopyValue(SystemPrivilegeBase obj)
 {
     obj.OperationID     = this._operation_id;
     obj.ResourcesID     = this._resources_id;
     obj.PrivilegeCnName = this._privilegecnname;
     obj.PrivilegeEnName = this._privilegeenname;
     obj.DefaultValue    = this._defaultvalue;
     obj.Description     = this._description;
     obj.PrivilegeOrder  = this._privilegeorder;
 }
Beispiel #2
0
        /// <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);
            }
            SystemPrivilegeBase castObj = (SystemPrivilegeBase)obj;

            return((castObj != null) &&
                   (this._privilege_id == castObj.PrivilegeID));
        }