entity framework - WCF Service with existing Service/Repository Layer and EF 4.1 Code First -


i have existing set of services , repositories use in mvc application leverage entity framework 4.1 code first.

i want create couple of wcf services use existing architecture, seems have hard time serializing object graphs.

i realize there circular references deal with, don't want litter domain objects wcf attributes, should create view models mvc app uses? , if so, should create view models able used in both?

any other ideas? - thanks!!

i prefer keeping domain model , wcf data contract separate defining data transfer object classes data contact of wcf server. tailored carry right data across wire. dto design keep number of wcf service call roundtrips client down. separate internal domain model contract client.


Comments