Click here to Skip to main content
15,896,726 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
Hi, I making my first WCF service so I have few questions in mind. I would be using Entity Framework for database operations so the entities generated by EF would be used on the Services end. 
    My question is that should I create a wrapper class on both Client and Service side and unwrap them after transferring or I should use same classes generated by the Entity Framework on the Client side. Creating wrapper classes would increase the amount of code I have to write while using entities generated by EF could result in unnecessary data being transferred over network.


What I have tried:

I have tried to pass entities generated by EF but there are many unnecessary objects that are passed.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900