LINQ projection to presentation model
问题 I'm pretty new to LINQ and a lot of modern data-driven application design techniques in general, so this may be a pretty basic question. I'm trying to create a projection of a couple different Entity Framework entities to a simple presentation model. Let's say I have the entites Parent (properties are ID, Name, Age) and Child (properties are ID, Name, Age, with a reference to a Parent). I want to project these to PresentationParent and PresentationChild, where all the properties are the same,