-1

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

Ondrej
  • 1,550
  • 3
  • 18
  • 33

1 Answers1

0

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

Community
  • 1
  • 1
huMpty duMpty
  • 14,061
  • 13
  • 55
  • 93