在库存 asp.net mvc 应用程序中组合来自业务数据库和 ASPNETDB.MDF 的表
ASP.Net MVC 应用程序有一个业务数据库 FOO.MDF 和一个单独的会计数据库 ASPNETDB.MDF 如果它们使用股票帐户提供程序
是否可以将表从 ASPNETDB.MDF 移动到我的业务数据库中(我想引用用户类在其他表中)同时仍然使用现成的 AspNetSqlMembershipProvider?如果我能完全避免的话,我不想编写自己的提供程序。
如果我向 aspnet_Users 表添加一些在 Site AccountController 中设置的字段,会发生什么情况?
谢谢, 达菲
ASP.Net MVC apps have a business database FOO.MDF and a seperate accounting database ASPNETDB.MDF if they use the stock account provider
Is it possible to move the tables from ASPNETDB.MDF into my business db (I want to refer the user class in other tables) while still using the off-the-shelf AspNetSqlMembershipProvider? I don't want to write my own provider if I can avoid it at all.
What happens if I add some fields to the aspnet_Users table which are set insite AccountController?
Thanks,
Duffy
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我最终使用此处描述的脚本在我的业务数据库中创建了 aspnetdb 表。
http://weblogs.asp.net/scottgu/archive/2005 /08/25/423703.aspx
但是,我不敢将自定义字段添加到aspnet表中。相反,我创建了一个用户表,其中每个条目都与“官方”aspnet_user 表中的一个条目完全匹配,并扩展注册过程以在建立 aspnet_user 对象后生成用户对象。
I ended up creating the aspnetdb tables inside my business db with the script described here.
http://weblogs.asp.net/scottgu/archive/2005/08/25/423703.aspx
However, I didn't dare to add custom fields to the aspnet tables. Instead I created a user table where each entry is matched with exactly one entry from the "official" aspnet_user table and extended the signup procedure to generate a user object once the aspnet_user object was established.