O'Reilly logo

WCF 4.0 Multi-tier Services Development with LINQ to Entities by Mike Liu

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

In this chapter, we have used LINQ to Entities to communicate with the database in the data access layer rather than use the raw ADO.NET APIs. We have used only one LINQ statement to retrieve product information from the database and, as you have seen, the updates with LINQ to Entities prove to be much easier than with the raw ADO.NET data adapters. Now, WCF and LINQ are combined together for our services so we can take advantage of both technologies.

The key points covered in this chapter include:

  • The data access layer can be modeled with the LINQ to Entities designer.
  • Business entity classes are all located inside the LINQ to Entities designer file within the data access layer.
  • It is better to separate our own entities classes from the generated ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required