Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Entity Framework<br />WCF Service<br />XSD Based WCF Service – Part 2<br />
Topics<br />Entity Framework<br />WCF Service Library<br />XML Serialization<br />
WCF Service Library Project<br />WCF Service <br />XSD<br />Xml Serialize<br />LINQ<br />SL Enabled WCF Service<br />Busin...
Entity Framework<br />Entity Framework<br />Application<br />ORM Interface<br />Entity Data Model (EDM)<br />ADO.NET Provi...
WCF Service Library<br />WCF Service Library<br />WCF Service Application<br />Service contract file (IService1.cs or ISer...
Service contract file (IService1.cs or IService1.vb)
Service implementation file (Service1.svc.cs or Service1.svc.vb)
Upcoming SlideShare
Loading in …5
×

Xsd based wcf service part 2

1,839 views

Published on

Published in: Technology, Education
  • Be the first to comment

  • Be the first to like this

Xsd based wcf service part 2

  1. 1. Entity Framework<br />WCF Service<br />XSD Based WCF Service – Part 2<br />
  2. 2. Topics<br />Entity Framework<br />WCF Service Library<br />XML Serialization<br />
  3. 3. WCF Service Library Project<br />WCF Service <br />XSD<br />Xml Serialize<br />LINQ<br />SL Enabled WCF Service<br />Business Rules<br />Business Objects to Data Objects<br />Class Library Project (Data Library)<br />EDMX<br />Data Objects<br />Database<br />Sample App Architecture<br />
  4. 4. Entity Framework<br />Entity Framework<br />Application<br />ORM Interface<br />Entity Data Model (EDM)<br />ADO.NET Provider<br />Queries / Updates<br />Data Store<br />http://msdn.microsoft.com/en-us/data/aa937709.aspx<br />
  5. 5. WCF Service Library<br />WCF Service Library<br />WCF Service Application<br />Service contract file (IService1.cs or IService1.vb). The service contract file is an interface that has WCF service attributes applied. This file provides a definition of a simple service to show you how to define your services, and includes parameter-based operations and a simple data contract sample. This is the default file displayed in the code editor after creating a WCF service project.<br />Service implementation file (Service1.cs or Service1.vb). The service implementation file implements the contract defined in the service contract file. <br />Application configuration file (App.config). The configuration file provides the basic elements of a WCF service model with a secure HTTP binding. It also includes an endpoint for the service and enables metadata exchange.<br /><ul><li>Service host file (service1.svc)
  6. 6. Service contract file (IService1.cs or IService1.vb)
  7. 7. Service implementation file (Service1.svc.cs or Service1.svc.vb)
  8. 8. Web configuration file (Web.config)</li></li></ul><li>XML Serialization<br />The following items can be serialized using the XmLSerializer class:<br /><ul><li>Public read/write properties and fields of public classes.
  9. 9. Classes that implement ICollection or IEnumerable.
  10. 10. XmlElement objects.
  11. 11. XmlNode objects.
  12. 12. DataSet objects.</li></ul>Serialization is the process of converting an object into a form that can be readily transported<br />XML serialization serializes only the public fields and property values of an object into an XML stream<br />The central class in XML serialization is the XmlSerializer class, and the most important methods in this class are the Serialize and Deserialize methods<br />
  13. 13. Demo WCF Service<br />

×