Y
Hacker News
new
|
ask
|
show
|
jobs
by
barrydahlberg
4674 days ago
.NETs Entity Framework lets you do this using the fantastic LINQ syntax. Commonly you will say which objects to select, then give a projection into a new anonymous type with only the columns you want.
1 comments
wtetzner
4674 days ago
It would be much nicer to use if C# had structural typing for the anonymous types, so you could usefully return them.
link