First open Visual Studio 2013. Create a new project and select WCF Service Application and give it the name WCFdemo.Then click OK. Now In Solution Explorer right-click on the WCFdemo project and seelct Add New Item and seelct ADO.Net Entity Data Model.Add a database here and select Tables.Now your Solution Explorer looks like this.Now add a new item, WCF Service.Select WCF Service and give it a name.Now EmployeeServices.svc and IEmployeeServices.cs files have been added to Solution Explorer.Now open the EmployeeServices.svc.cs file and write the following code.Here Employee is my database table and m9codersEntities is the entity name.Now open IEmployeeServices.cs and write the method name of the EmployeeServices.svc.cs file.Now build the project. (Shortcut: F6).Now run the EmployeeServices.svc file. (Ctrl+F5).Then open the WCF Client popup window.And your service will be added.After the service has been added successfully copy the URL and paste it into your browser.You can see all your methods here and now can be used in any project.In the next article, I will explain how to use a WCF service in MVC.
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: