我有多个配置文件提供商和配置文件类型:多种个性化配置提供
ProviderA
与ProfileA
和
ProviderB
与ProfileB
他们都使用不同的数据库。我希望能够说:
ProfileB.Create(...)
,和轮廓在数据库B创建的,而ProfileA.Create(...)
创建数据库A.
轮廓如何地狱我这个配置在我的web.config?
以下是(当然)无效:
<profile inherits="ProfileA, Authenticatie" defaultProvider="ProfileProviderA" enabled="true" automaticSaveEnabled="true">
<providers>
<add name="ProfileProviderA" applicationName="websiteA" type="ProfileProviderA, Authenticatie" connectionStringName="connstringA" description=""/>
</providers>
</profile>
<profile inherits="ProfileB, Authenticatie" defaultProvider="ProfileProviderB" enabled="true" automaticSaveEnabled="true">
<providers>
<add name="ProfileProviderB" applicationName="websiteB" type="ProfileProviderB, Authenticatie" connectionStringName="connstringB" description=""/>
</providers>
</profile>
对于这个问题,8年后还没有解决。 – Luc 2018-03-07 19:54:49