Subsonic: dynamic connections

后端 未结 5 1989
执笔经年
执笔经年 2020-12-17 06:53

I have an ancient mess I\'m trying to shovel into tiers using subsonic. Trouble is, I have this scenario:

When Hal logs in, his login uses database X for lookup data

5条回答
  •  感情败类
    2020-12-17 07:01

    You shouldn't need to modify the source, you should just be able to use multiple providers for talking to the different databases and switch between them at runtime. Have a look at the following question to see how to do that:

    Separate Read/Write Connection for SubSonic

提交回复
热议问题