Book description
Create and deploy complete solutions with WCF and Entity Framework
In Detail
This book will teach you all the essentials to develop WCF services using Entity Framework as the backend. You will be guided right through the creation of six WCF and Entity Framework solutions.
You will start off by creating, implementing, and hosting a basic HelloWorld WCF Service followed by deploying the service and publishing it to IIS. Next, you will learn how to create and test a layered service, and then enhance it further by adding a data access layer and exception handling. Next, you will be introduced to LINQ. Starting with the basics, you will then dive into the advanced concepts and features of LINQ to Entities, including Entity Framework, deferred execution, querying a view, and mapping a procedure. Finally, you will get to grips with the RESTful WCF services and security.
What You Will Learn
- Create a WCF service without using the built-in WCF templates so you can understand the versatility of what's going on under the hood
- Explore the different methods for hosting and debugging options for a WCF service
- Build a multi-layer, real-world WCF service from scratch by using WCF templates and Test Client
- Learn the basic and advanced features of Entity Framework and LINQ to Entities, and apply LINQ to Entities to the data access layer of a WCF service
- Convert a SOAP WCF service to a RESTful WCF service and create a Windows 8 app to consume a RESTful WCF service
- Configure the authorization and authentication security settings of WCF and get the details of hosting Windows authentication
- Explore the extension point architecture of WCF and extend a WCF service with custom behaviors
Publisher resources
Table of contents
-
WCF Multi-layer Services Development with Entity Framework Fourth Edition
- Table of Contents
- WCF Multi-layer Services Development with Entity Framework Fourth Edition
- Credits
- About the Author
- About the Reviewers
- www.PacktPub.com
- Preface
- 1. Implementing a Basic HelloWorld WCF Service
- 2. Hosting the HelloWorld WCF Service
- 3. Deploying the HelloWorld WCF Service
- 4. Debugging the HelloWorld WCF Service
- 5. Implementing a Three-layer WCF Service
-
6. Adding Database Support and Exception Handling
-
Adding a data access layer
- Creating the data access layer project
- Calling the data access layer from the business logic layer
- Preparing the database
- Adding the connection string to the configuration file
- Querying the database using GetProduct
- Testing the GetProduct method
- Updating the database using UpdateProduct
- Testing the UpdateProduct method
- Adding error handling to the service
- Summary
-
Adding a data access layer
- 7. LINQ to Entities – Basic Concepts and Features
- 8. LINQ to Entities – Advanced Concepts and Features
-
9. Applying LINQ to Entities to a WCF Service
- Creating the LINQNorthwind solution
- Installing Entity Framework
- Modeling the Northwind database
- Creating the business domain object project
- Using LINQ to Entities in the data access layer
- Creating the business logic layer
- Creating the service interface layer
- Testing the service with the WCF Test Client
- Testing concurrency with our own client
- Hosting the WCF service in IIS
- Summary
-
10. Distributed Transaction Support of WCF
- Creating the DistNorthwind solution
- Hosting the WCF service in IIS
- Testing the transaction behavior of the existing WCF service
- Enabling distributed transaction support
- Understanding the distributed transaction support of a WCF service
- Testing the distributed transaction support of the new WCF service
- Trade-offs of distributed transactions
- Summary
-
11. Building a RESTful WCF Service
- SOAP versus REST
- WCF REST versus the ASP.NET Web API
- Creating the RESTNorthwind solution
- Creating the RESTful service
- Testing the RESTful service in a browser
- Testing the RESTful WCF service with a C#/XAML client
- Testing the RESTful WCF service with a JavaScript client
- Summary
- 12. WCF Security
- 13. Extending WCF Services
- Index
Product information
- Title: WCF Multi-layer Services Development with Entity Framework Fourth Edition
- Author(s):
- Release date: October 2014
- Publisher(s): Packt Publishing
- ISBN: 9781784391041
You might also like
book
Networking Fundamentals
Become well-versed with basic networking concepts such as routing, switching, and subnetting, and prepare for the …
book
Radar Trends to Watch: August 2023
Read about the latest developments on O'Reilly Media's Radar.
book
Web Security for Developers
The world has changed. Today, every time you make a site live, you’re opening it up …
book
You, Only Better
If you want to be happy, fulfilled and energised its probably best not to obsess over …