0

ASP.Net MVC アプリには、ビジネス データベース FOO.MDF と、ストック アカウント プロバイダーを使用する場合の個別の会計データベース ASPNETDB.MDF があります。

市販の AspNetSqlMembershipProvider を使用しながら、テーブルを ASPNETDB.MDF からビジネス データベース (他のテーブルでユーザー クラスを参照したい) に移動することはできますか? まったく回避できるのであれば、独自のプロバイダーを作成したくありません。

AccountController 内に設定されている aspnet_Users テーブルにいくつかのフィールドを追加するとどうなりますか?

ありがとう、ダッフィー

4

1 に答える 1

1

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.

于 2011-06-07T16:26:14.330 に答える