Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: WCFRESTEntities
Hi,,
I have to create REST services and insert a new record in the database ..I want to know is ADO.NET Entity Data Model(edmx) file useful to create a new record in REST services?
 
Thanks,,
Posted 12-Sep-12 2:17am
cutie1297
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Firstly make sure, does WCF REST service really required for inserting a new record in your application architecture. Below are some good references to start with WCF REST services.
 
http://msdn.microsoft.com/en-us/magazine/dd315413.aspx
 
http://msdn.microsoft.com/en-us/library/ee391967.aspx
 
To insert your data using WCF REST service, you will require POST method. Below link will provide you plenty of CodeProject articles on this.
 
http://www.codeproject.com/search.aspx?q=WCF+Rest+post&sbo=kw
 
Once your POST method gets data in the form of XML/JSON then you can insert it into Database using Ado.Net/Entity Framework. Below article has an example of "WCF REST service with Entity Framework".
 
wcf-rest-service-with-odata-and-entity-framework
  Permalink  
Comments
cutie1 at 13-Sep-12 0:57am
   
Thank u for ur links...
RaisKazi at 13-Sep-12 9:25am
   
Welcome, glad to know it was helpful to you. :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 375
1 Abhinav S 333
2 OriginalGriff 330
3 sanket saxena 305
4 CPallini 205
0 Sergey Alexandrovich Kryukov 8,497
1 OriginalGriff 4,850
2 Peter Leow 3,839
3 Maciej Los 3,515
4 Er. Puneet Goel 3,107


Advertise | Privacy | Mobile
Web03 | 2.8.140415.2 | Last Updated 12 Sep 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid