I need to execute read-only queries against a database that I don't control. My top choice would be Linq to SQL, however, the column names differ slightly between our Dev, QA, and Production environments.
For example, take a FolderName
column. We might have:
Dev: u34_FolderName
QA: u74_FolderName
PROD: u56_FolderName
I want to do queries like this:
var query = from c in DepartmentReviews
where c.FolderName == "Test"
Can I use the Entity Framework to solve this problem?
What a potential solution look like? 3 assemblies, 1 for each of my environments? Can I create common interfaces or base classes for each of these and code against those?