In this post we will create WCF Data Service takes $JSONP in query and returns JSON data as response. For example if we want to fetch data as JSON we can fetch as following, http://localhost:5157/WcfDataService1.svc/People?$format=json To start with, Let us create WCF Data Service on School Database. Open Visual Studio 2010 as administrator and create … Continue reading How to create WCF Data Service with $JSONP format
In this post we will see how could we expose a custom method in WCF Data Service? There are three steps involved in doing that Create a partial class of Entity class and add desired custom method in that. Add a method with WebGet attribute in service class. This method will make a call to … Continue reading How to work with Custom Method in WCF Data Service?
ODATA is everywhere and so is Silverlight. In this post, I will show, How ODATA can be consumed in Silverlight? “ OData URL I will be using NorthWind OData URL. You can access that URL from below link. http://services.odata.org/Northwind/Northwind.svc/ We are going to fetch Customers table from NorthWind DataBase. Create Project and Add Service Reference … Continue reading Consuming ODATA in Silverlight 4.0
In this article, we will discuss about how to consume data from cloud [SQL Azure] in a Windows 7.1 [Mango] phone. SQL Azure and Windows 7.1 [Mango] phones are two common terms that you can hear about from many tech-savvy people. So I thought it is the right time to integrate these technologies. In this … Continue reading Fetching Data from SQL Azure table in Windows 7.1 [Mango] Phone using WCF Data Service