consider the following code , this is a method in my BLL to extract data from my DAL which is an EF4 .edmx file
public ObservableCollection<Glass> ShowGlasses()
...
var result = from d in glassContext.GLASSes
...
now I want to replace glassContext.GLASSes with a parameter so that I can access different tables/views with the same structure using this method, for example I may want to use glassContext.GLASSes2 instead, how can I do this ?
Thanks in advance
I think you want something like this