Hi all,
I'm working with a pretty nasty looking, but non-changable db.
We've got a table, called "Locations" with column, "Position"
This column has values like "A SHELF 5"
Which means "Case A, Shelf 5". In an ideal world, I'd have a Case and Shelf column, with the values "A" and 5, respectively.
What I'm wondering, is if there's a way to define some "Virtual" (maybe not the right word) columns, in my entity classes, so that once I do that, I can just query the table as if those columns existed (Selects, Where clauses, Group By, etc)?
Admittedly, I'm pretty new to Linq, so I'm not even using the right technical terms to describe what I want to do. Which makes it harder to find the answers. So if someone just wants to point me to any introductory documentation that would even help me get started, I'd consider that a valid answer.
To make it more complicated, the column is only structured as above, depending on the value of some other columns, but I'll not go there.
thanks for taking the time to read this. Past experience tells me the SO crew is the best!