亚音速支架多对多控制正在消失
我正在使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是否意味着您的多对多表中有两个主键? SubSonic 不支持一张表中存在多个主键。
Does that mean you have two primary keys in your many to many table? SubSonic does not support multiple primary keys in one table.