我有多個配置文件提供商和配置文件類型:多種個性化配置提供
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