更新 LinqToSql 类后,LinqDataSource 向导表列表未刷新
我已经像这样更改了 dbml 文件。
- 我已经删除了所有表和存储过程。
- 我从新数据库添加了新表和存储过程。
在隐藏代码中,我可以访问新表和存储过程。但是,当我尝试配置 LinqDataSource
时,在 LinqDataSource
中使用相同的 dbContext。我可以在向导下拉列表中看到所有旧表。
如何刷新向导下拉列表以便我可以选择新添加的表?
删除旧的 LinqDataSource
并添加新的不起作用。
I have changed my dbml file like this.
- I have deleted all the tables and stored procs.
- I added new tables and stored procs from a new database.
In the code-behind, I can access the new tables and stored procs. However, in the LinqDataSource
using the same dbContext when I'm trying to configure the LinqDataSource
. I can see all the old tables in the wizard drop-down.
How to refresh the the wizard drop-down so that I can select the newly added tables?
Deleting the old LinqDataSource
and adding a new one is not working.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
创建新的 dbml 后,重建解决方案。然后表格应该显示在向导中。
After creating your new dbml, rebuild the solution. The tables should be shown in the wizard then.