ASP .NET MVC 3 and a Dataservice
I'm looking for an example of an mvc site using a dataservice to execute it's business logic and database calls. Can anybody help me?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jignesh TrivediRank #16 · 50.3K reputationPosted Jun 12, 2012, 7:59 PM EDT
Please refer
The following blog goes through the process of writing a Layered ASP.NET MVC Applicaiton with a WCF Service (Parts III & IV specifically concentrate on WCF & MVC interaction)
http://sankarsan.wordpress.com/2009/04/12/a-layered-aspnet-mvc-application-part-ii/
http://sankarsan.wordpress.com/2009/04/12/a-layered-aspnet-mvc-application-part-iii/
http://sankarsan.wordpress.com/2009/04/12/a-layered-aspnet-mvc-application-part-iv/
hope this will help you.
Olivier Muhring151 reputationPosted Jun 13, 2012, 4:34 AM EDT
However... I'm expected to use dataservices.
What is the difference between a webservice and a dataservice?
Jignesh TrivediRank #16 · 50.3K reputationPosted Jun 13, 2012, 7:31 PM EDT
Data Services are best when you are exposing your data model and associated logic through a RESTful interface; it includes a full implementation of the Open Data (OData) Protocol for .NET.
The major difference is that Web Services Use XmlSerializer. But WCF Uses DataContractSerializer which is better in Performance as compared to XmlSerializer.
Web Services can be accessed only over HTTP & it works in stateless environment, where WCF is flexible because its services can be hosted in different types of applications. Common scenarios for hosting WCF services are IIS,WAS, Self-hosting, Managed Windows Service.
Please Refer
http://msdn.microsoft.com/en-us/library/aa738737.aspx
hope this will help you.