based on some variable, I want to choose the datacontext from four possible datacontexts (of different types, of course) in a master page and then use it in nested master pages. Is this possible?
Thanks, Ondrej
based on some variable, I want to choose the datacontext from four possible datacontexts (of different types, of course) in a master page and then use it in nested master pages. Is this possible?
Thanks, Ondrej
Not sure whether this is work for you.
But I think you can change the connection
dynamically to your datacontext
.
You can have a look at Dynamic connection for LINQ to SQL DataContext and Linq to Sql - Set connection string dynamically based on environment variable