-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,610
  • 3
  • 19
  • 34

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,346
  • 14
  • 60
  • 99