WCF Serialize and DeSerialize XML Sample
This is a little example how to Serialize Object to XML and Deserialize XML to Object using a simple generic function with c# on WCF Application.
This code take it and change it to one of the references listed at the end and you can download the project from here!.
So first we can create our Class
then our Generic Serialize and Deserialize functions
Our interface Service
Our functions inheritance from Interface
So if you are working with EF you can use things like Automapper to mapping the new object to the Entity object and Insert or Update the data.
and here is some great references: