Click here to Skip to main content
15,891,567 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,
I am writing a sample WCF REST service using ADO.NET Entity Model(.edmx).
Help me in exposing the data obtained from ADO.NET EM,


Thanks
Posted

1 solution

Hi
If I understand you correct, you want to send data from Entity to client through REST service?
If you using WCF RESTfull service you can serialize your data from Entity or combined object to JSON and parse data on client side. Or if you use .NET 4 you can create .NET ASP MVC4 project and use WebAPI. In this case you can just return from WebAPI your class object, the MVC 4 framework will serialize that object to JSON by default.

Hope this will help.

Best Regards
Deverno
 
Share this answer
 

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