Ok, despite searching the net I've not found a solution that works for this. I have a LINQ to SQL query which i'm using the 'select new' approach to define my results structure:
Code: Select all
select new MyEntityTableNamehere
{
.....
}
From what I can gather this is due to this table having the table attribute assigned to it in the data context. Is there anyway by inheritance that I can define a model which pickups the shape of the entity table. There are a lot of fields and I don't fancy having to setup and maintain another model that will just mirror the table structure.
Thanks ;o)