追加のユーザー登録フィールドを拡張したいのですが、他のチュートリアルでは、これを行う方法として profile-properties を使用することが提案されています。(?)
そこで、以下に示すように Web.config ファイルにセクションを追加します ( タグ)。.cs ファイルで intellisense によって Profile が利用できることを期待していましたが、そうではありません..
では、これを機能させるにはどうすればよいでしょうか。そして、これに対するより良い解決策はありますか?
ところで、チュートリアルはこれでした。
<authentication mode="Forms">
<forms loginUrl="~/Account/Login.aspx" timeout="2880" />
</authentication>
<membership>
<providers>
<clear/>
<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices"
enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false"
maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10"
applicationName="/" />
</providers>
</membership>
<profile>
<properties>
<add name="Age"/>
<add name="Gender" />
</properties>
<providers>
<clear/>
<add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/"/>
</providers>
</profile>