WCF DataContract and Code first entity classes RRS feed

  • Question

  • I generated my entity model using code first approch and i have some navigation properties(marked as virtual).

    I want to use same entity class as my datacontract for WCF service. but you can not put virtual properties in Data Contract.

    What is the correct way to do this? should i create spearate set of domain class and map with entity class or what the best solution for this knd of senarios


    Tuesday, July 2, 2013 10:18 AM