Objective In this article, I will show how 1. WCF Service can be created from the scratch 2. WCF Service can be hosted in Console Application You can see video of this article here Let us say, we have a table called Student of below structure below in our data base In Student table RollNumberContinueContinue reading “Creating WCF Data Service from scratch and Hosting in Console Application”
Category Archives: WCF Data Service
Video on Hosting WCF Data Service in Console Application
MyDataService.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ServiceModel; using System.ServiceModel.Web; using System.Data.Services; using System.Data.Services.Common; namespace DemoHostingInConsole { public class MyDataService : DataService<StudentDBEntities> { public static void InitializeService(DataServiceConfiguration config) { config.SetEntitySetAccessRule(“*”, EntitySetRights.All); config.DataServiceBehavior.MaxProtocolVersion = DataServiceProtocolVersion.V2; } } } Program.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ServiceModel; using System.ServiceModel.Web; using System.Data.Services;ContinueContinue reading “Video on Hosting WCF Data Service in Console Application”
Introduction to WCF Data service and ODATA
You can see video tutorial of this article Creating WCF Data Service Consuming WCF Data Service WCF Data Service, Project Astoria, OData and ADO.Net Data Service are same thing. What is ODATA? · ODATA is HTTP or web protocol to querying or manipulating data. · ODATA uses HTTP, JOSN or ATOM. · ODATA can beContinueContinue reading “Introduction to WCF Data service and ODATA”
Video tutorial on Consuming WCF Data Service
Source code using System; using System.Collections.Generic; using System.Linq; using System.Text; using secondClient.ServiceReference1; using System.Data.Services.Client; namespace secondClient { class Program { static void Main(string[] args) { DataServiceContext context = new DataServiceContext (new Uri(“http://localhost:3803/WcfDataService1.svc/”)); StudentDBEntities studentDbEnt = new StudentDBEntities (new Uri(“http://localhost:3803/WcfDataService1.svc/”)); #region Get all the Records var res = from r in studentDbEnt.Students select r; foreach (varContinueContinue reading “Video tutorial on Consuming WCF Data Service”
Video Tutorial on Introducing WCF Data Service
PPT on WCF Data Service
Download the PPT for introduction to WCF Data Service WCF Data Service an Introduction