I need to
OrderBy( p => new SomeClass {p.firstField, p.secondField} )
where
public class SomeClass<T>
{ T firstField {get;set;}
T secondField {get;set;}
}
What is the most specific Entity Framework 4 type that T can be?
What code could I use to set firstField's and secondField's value?
(meaning I want firstField to reference p.ID and secondField to reference p.Name).