I have two database tables -- Customer_Values and Customer_Attributes... and it's... dumb. Terrible.
Customer_Values has things like
CustomerId | AttributeId | Value
--------------------------------
01 | 01 | Steve
02 | 01 | Frank
01 | 02 | Smith
etc...
And Customer_Attributes looks like this
AttributeId | Value
------------------------
01 | First Name
02 | Last Name
I would like to map the first table into an Entity object like this...
class {
string FirstName { get; set; }
string LastName { get; set; }
}
But I'm not at all sure at all how to do that.
I'm using EF 6, code-first