The best solution is NOT to expose your persistent classes in the service.
Instead, create DTO classes that contain only the information needed by each service call, and expose those.
You can use AutoMapper to avoid part of the work of mapping from/to the DTOs and the persistent classes.
Diego Mijelshon
2010-04-15 00:19:25