亚音速支架多对多控制正在消失

发布于 2024-08-23 00:07:21 字数 437 浏览 1 评论 0原文

我正在使用 SubSonic 脚手架控件来自动生成多对多控件。

<subsonic:Scaffold ID="scfMain" runat="server"
    AutoGenerateManyToMany="true"></subsonic:Scaffold>

在 Page_Load 上,我设置表名称

scfMain.TableName = "Foo";

多对多控件由多对多表、两个外键、两个主键生成。这最初有效,但一段时间后,多对多控件就会消失。让它们恢复的唯一方法是以某种方式重新启动应用程序,可以通过更改 Web 配置、回收应用程序池或重新启动网站。

这是一个已知的错误,还是我做错了什么?我在本地计算机、暂存和生产中看到了同样的情况,因此它似乎并不是某个环境所独有的。

I'm using the SubSonic scaffold control with auto-generating many to many controls.

<subsonic:Scaffold ID="scfMain" runat="server"
    AutoGenerateManyToMany="true"></subsonic:Scaffold>

On Page_Load I'm setting the table name

scfMain.TableName = "Foo";

The many to many controls are generated by a many to many table, two foreign keys, two primary keys. This works initially, but after a while the many to many controls disappear. The only way to get them back is to restart the app somehow, either by changing the web config, recycling the app pool, or restarting the site.

Is this a known bug, or is there something I'm doing wrong? I'm seeing the same thing on my local machine, staging, and production, so it doesn't seem to be unique to one environment.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

故事还在继续 2024-08-30 00:07:21

多对多控件由多对多表、两个外键、两个主键生成

这是否意味着您的多对多表中有两个主键? SubSonic 不支持一张表中存在多个主键。

The many to many controls are generated by a many to many table, two foreign keys, two primary keys

Does that mean you have two primary keys in your many to many table? SubSonic does not support multiple primary keys in one table.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文