VS2017 DataSet不生成插入/更新/删除命令(表有PK) [英] VS2017 DataSet not generating Insert/Update/Delete commands (table has PK)

查看:184
本文介绍了VS2017 DataSet不生成插入/更新/删除命令(表有PK)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在测试VS 2017.在我的DataSet可视化设计器中,VS2017不会自动生成插入/更新/删除命令。这通常发生在桌面上缺少PK时,但PK就在那里。只是为了确保我丢弃PK并重新创建它但仍然存在问题
仍然存在。

I am testing VS 2017. In my DataSet visual designer the VS2017 does not auto-generate Insert/Update/Delete commands. This typically happens when PK is missing on table, but the PK is there. Just to be sure I dropped PK and recreated it but still the issue persists.

我在VS2015上打开了项目并且是能够正确创建语句。在VS2015上,它可以针对同一个数据库正常工作。

I opened the project on VS2015 and was able to correctly create the statements. On VS2015 it works correctly against the same database.

推荐答案

您好dkonyayev,

Hi dkonyayev,

欢迎来到MSDN论坛。

Welcome to the MSDN forum.

您的应用程序的项目类型是什么?

What's the project type of your application?

>>在我的DataSet可视化设计器中,VS2017不会自动生成插入/更新/删除命令

创建新项目并添加数据集以进行测试时,是否会出现此问题?

Does this issue occurs when you create a new project and add dataset to test it?

请参阅您的说明,我发现其他一些社区成员报告了类似的问题如下:

Refer to your description, I found some other community members reported the similar issue as below:

数据集设计器丢失插入,更新,删除命令以及GenerateDBDirect

如果您遇到同样的问题,请向VS产品团队工程师添加评论,他们将帮助您确认此问题,谢谢您的理解。

If you meet the same issue, please add a comment to the VS Product Team Engineers, and they will help you to confirm this issue, thank you for your understanding.

如果您的问题不同,请提供您使用的VS版本以及重现此问题的详细步骤,我将在我身边进行测试并检查是否可以重现它。

If your issue is different and could you please provide the VS version that you used and the detail steps to reproduce this issue, I will test it on my side and check if I can reproduce it or not.

祝你好运,

Sara 

Sara 


这篇关于VS2017 DataSet不生成插入/更新/删除命令(表有PK)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆