【问题标题】:Is there a reason Visual Studio 2010 is not generating Update and Delete statements on Typed DataSet using the designer?Visual Studio 2010 没有使用设计器在 Typed DataSet 上生成 Update 和 Delete 语句是否有原因?
【发布时间】:2011-06-10 14:18:06
【问题描述】:

当使用 Visual Studio 2010 更新类型化数据集时,它会更新 Insert 命令,但它只是删除 Update 和 Delete 命令。

我将生成更新命令设置为 true。

任何想法为什么它不生成其他语句?

(这是一个有很多查询的遗留应用程序,所以我不能只删除数据表并重新创建它)

【问题讨论】:

    标签: visual-studio-2010 dataset strongly-typed-dataset


    【解决方案1】:

    这是因为该表没有在 SQL Server 中设置主键。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-03-22
      • 1970-01-01
      • 2013-05-15
      • 2011-02-23
      相关资源
      最近更新 更多