RT,不想直接写代码,还有其它的方法吗,不知道为什么VS2008把这个东西给删了,除了在vs2005里写,还有其它的办法吗?

解决方案 »

  1.   

    个人感觉,用Vs创建的那个数据集(包含SQL操作方法)可读性非常差。虽然参数部分你在可视化环境中利用工具动态隐藏生成。操作数据时仅仅像调用函数一样实例化下适配器数据集。然后调用这个数据集中的方法。把各个数据库表的值作为参数赋值进去就可以了。但我发现在一个表的插入操作中或修改。
    一个函数参数有10几个到将近20个。注释吧。这种函数结构,又非常难注释。自己虽然开发的代码自己看得懂。但移交给别人维护的时候,别人就是你的受害者。对数据库各个表各个字段不是非常熟悉的话。可以说整段插入或修改,你根本就很难都理解各个参数代表什么。可读性差劲及了。
    我们函数一般参数最好少超过5个。多余5个可考虑用类变变量。
      

  2.   

    不是数据集啊,是验证xml文件的xsd文件,在编辑xml文件时可以提示的那个,还可以验证
      

  3.   

    This has been discussed many times before.  VS fully supports editing XSD files just like it does XML.  There is Intellisense support and everything.  What it does not support anymore is a graphical editor.  The reason why a graphical editor is not a great option is because of the memory required to support it.  Graphical editors generally rely on the XMLDOM.  The XMLDOM is a legacy component with hideous overhead.  Anything above a 4MB XML file and things get really bad.  Go to 10MB and you can easily use several hundred MB just for the one file.  Having said that do note that the XML Schema Explorer is available for viewing a hierarchial interpretation of the schema.  It provides a few features but it is not a full-blown schema editor.  If you need to do graphical schema editing then you'll need to use an external tool.
      

  4.   

    cmd
    用以下命令重新打开VS2008
    Devenv.exe /ResetSkipPkgs