How to read different tables with just one LINQ-SQL dbml class

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Vladimir Iahnenco

    How to read different tables with just one LINQ-SQL dbml class

    Hi,
    I created dbml LINQ to SQL file and dragged a table into it. It created an
    object, say Day1, to read data from table Day1. Is it possible to use this
    object from DataContext reading other tables with exactly the same
    structure, say Day2, Day3 etc?

    I don't want to use synonyms, they are server wide. In multi-threading
    environment they might be not working.

    Thanks in advance,
    Vladimir


Working...