search the source code your strong-typed dataset generated by VS.NET, look for something like FindById or FindByName or FindByYourColumnName

解决方案 »

  1.   

    是不是在项目生成的数据集的两个源文件里查找?我找过,应该有一个FindbyMYColumnName的方法,但是我的确没有找到。
      

  2.   

    does your original data table have a primary key?
      

  3.   

    sorry, I don't use QQif your table has a primary key and your select statement contains the primary key, it should work. Consider to re-generate the strong-typed DataSet
      

  4.   

    问题已经解决,原因是Visual Studio.net在生成数据集的时候无法自动给数据集里面的表添加上主键,而在oracle数据库中,我建表的时候已经添加了主键,在数据集表中手动添加了主键后问题解决。
        顺便问一下,大家使用sql server作为数据库的时候会不会遇到相同的问题?或许这只是
    .net和oracle的兼容性问题。
      

  5.   

    I didn't get any problems with SQL Server