views:

22

answers:

0

Is there any way to change the connection string at runtime when working with the Dynamic Data framework and LINQ.

There seems to be no way to register multiple Models (with a single shared DataContext) at runtime, I just get an exception saying the specified DataContext type has already been registered.

I have tried using multiple models each with a separately registered DataContext but it looks like it uses a dictionary internally and the key is the DataContext type name so you are limited to only 1 DataContext. Surely there must be a workaround, is there some way to reset the Http Application.

Any ideas welcome.

Many thanks,