Use Astoria with DTOs

Apr 17, 2009 at 12:54 AM

Given EF as a backend, I was playing with the idea of exposing DTOs through Astoria and having an adapter between DTO queries and EF queries so I could automatically transform Astoria queries into EF queries.

The idea is that I don`t want to expose my entities directly and that in some cases, anyways, DTOs represent a projection of a given group of entities.

Thoughts?