到目前为止,我可以创建Custom Membership Providerand Custom Role Provider,但我对Custom Profile Provider. 在查看了一些演示后,我发现它们用于web.config定义配置文件的架构。例如,在标签中<profile>:
<properties>
<add name="AddressName"/>
<add name="AddressStreet"/>
<add name="AddressCity"/>
<add name="AddressState"/>
<add name="AddressZipCode"/>
<add name="AddressCountry"/>
</properties>
要访问该字段,他们使用Profile.AddressName,Profile.AddressStreet等...
我的问题是:这是定义配置文件架构的唯一方法吗?如果我想UserProfile在我的数据库中使用我的表,我应该怎么做?我需要读取数据的方式。
谢谢你的帮助。