/// <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);
            }
            SystemRoleBase castObj = (SystemRoleBase)obj;

            return((castObj != null) &&
                   (this._role_id == castObj.RoleID));
        }
Exemplo n.º 2
0
 /// <summary>
 /// CopyValue 方法
 /// </summary>
 public virtual void CopyValue( SystemRoleBase obj )
 {
     obj.RoleName = this._role_name;
     obj.RoleDescription = this._role_description;
     obj.RoleIsSystemRole = this._role_issystemrole;
 }
 /// <summary>
 /// CopyValue 方法
 /// </summary>
 public virtual void CopyValue(SystemRoleBase obj)
 {
     obj.RoleName         = this._role_name;
     obj.RoleDescription  = this._role_description;
     obj.RoleIsSystemRole = this._role_issystemrole;
 }