Showing posts with label WCF. Show all posts
Showing posts with label WCF. Show all posts

Sunday, April 15, 2012

Insert and Retrieve data from database using WCF Service in Asp / WinForms


Insert and Retrieve data from database using WCF Service in Asp.net || Beginner WCF Example to insert data into Database in Asp.net or Windows Forms.

To insert data into database using WCF service in asp.net, we have to do the following 3 steps as stated below:

1.      Create Database Table.
2.      Create one WCF service / Website (here website was created by me).
3.      Create Client Application (web / windows).

Create Database and One Table:
1.      Database name as wcfdb
2.      Database table as empinfo

create database wcfdb
create table empinfo
(
      empno int,
      ename varchar(150),
      sal float,
      deptno int
)