WCF Multi-layer Services Development with Entity Framework - Fourth Edition

Create and deploy complete solutions with WCF and Entity Framework

WCF Multi-layer Services Development with Entity Framework - Fourth Edition

Mike Liu

Create and deploy complete solutions with WCF and Entity Framework
Mapt Subscription
FREE
$29.99/m after trial
eBook
$23.10
RRP $32.99
Save 29%
Print + eBook
$54.99
RRP $54.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$23.10
$54.99
$29.99p/m after trial
RRP $32.99
RRP $54.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781784391041
Paperback378 pages

Book Description

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.

Table of Contents

Chapter 1: Implementing a Basic HelloWorld WCF Service
The basic WCF concepts
Creating the HelloWorld solution and project
Defining the HelloWorldService service contract interface
Implementing the HelloWorldService service contract
Hosting the WCF service in IIS Express
Creating a client to consume the WCF service
Summary
Chapter 2: Hosting the HelloWorld WCF Service
WCF hosting options
Summary
Chapter 3: Deploying the HelloWorld WCF Service
Publishing the HelloWorldService from Visual Studio
Publishing the HelloWorldService using a deployment package
Summary
Chapter 4: Debugging the HelloWorld WCF Service
Debugging a WCF service from a client application
Directly debugging the WCF service
Attaching the debugger to a running WCF service process
Debugging a WCF service hosted in the cloud
Summary
Chapter 5: Implementing a Three-layer WCF Service
Why layer a service?
Creating a new solution and project using the built-in WCF service template
Creating the service interface layer
Adding a business logic layer
Summary
Chapter 6: Adding Database Support and Exception Handling
Adding a data access layer
Adding error handling to the service
Summary
Chapter 7: LINQ to Entities – Basic Concepts and Features
LINQ to Entities
Creating a LINQ to Entities test application
Creating the data model
Querying and updating a database table
Viewing the generated SQL statements
Deferred execution
Deferred execution – lazy loading versus eager loading
Joining two tables
Querying a view
Summary
Chapter 8: LINQ to Entities – Advanced Concepts and Features
Calling a stored procedure
Handling simultaneous (concurrent) updates
Transaction support
Summary
Chapter 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
Chapter 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
Chapter 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
Chapter 12: WCF Security
WCF security components
Hosting a WCF service using basic authentication
Hosting a WCF service with Windows authentication
Summary
Chapter 13: Extending WCF Services
The WCF runtime architecture
Why extend WCF services?
WCF extension points
Extending a WCF service
Extending HelloWorldService
Summary

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

Authors

Table of Contents

Chapter 1: Implementing a Basic HelloWorld WCF Service
The basic WCF concepts
Creating the HelloWorld solution and project
Defining the HelloWorldService service contract interface
Implementing the HelloWorldService service contract
Hosting the WCF service in IIS Express
Creating a client to consume the WCF service
Summary
Chapter 2: Hosting the HelloWorld WCF Service
WCF hosting options
Summary
Chapter 3: Deploying the HelloWorld WCF Service
Publishing the HelloWorldService from Visual Studio
Publishing the HelloWorldService using a deployment package
Summary
Chapter 4: Debugging the HelloWorld WCF Service
Debugging a WCF service from a client application
Directly debugging the WCF service
Attaching the debugger to a running WCF service process
Debugging a WCF service hosted in the cloud
Summary
Chapter 5: Implementing a Three-layer WCF Service
Why layer a service?
Creating a new solution and project using the built-in WCF service template
Creating the service interface layer
Adding a business logic layer
Summary
Chapter 6: Adding Database Support and Exception Handling
Adding a data access layer
Adding error handling to the service
Summary
Chapter 7: LINQ to Entities – Basic Concepts and Features
LINQ to Entities
Creating a LINQ to Entities test application
Creating the data model
Querying and updating a database table
Viewing the generated SQL statements
Deferred execution
Deferred execution – lazy loading versus eager loading
Joining two tables
Querying a view
Summary
Chapter 8: LINQ to Entities – Advanced Concepts and Features
Calling a stored procedure
Handling simultaneous (concurrent) updates
Transaction support
Summary
Chapter 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
Chapter 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
Chapter 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
Chapter 12: WCF Security
WCF security components
Hosting a WCF service using basic authentication
Hosting a WCF service with Windows authentication
Summary
Chapter 13: Extending WCF Services
The WCF runtime architecture
Why extend WCF services?
WCF extension points
Extending a WCF service
Extending HelloWorldService
Summary

Book Details

ISBN 139781784391041
Paperback378 pages
Read More

Read More Reviews

Recommended for You

ASP.NET Web API: Build RESTful web applications and services on the .NET framework Book Cover
ASP.NET Web API: Build RESTful web applications and services on the .NET framework
$ 29.99
$ 21.00
WCF 4.5 Multi-Layer Services Development with Entity Framework Book Cover
WCF 4.5 Multi-Layer Services Development with Entity Framework
$ 29.99
$ 21.00
Multithreading in C# 5.0 Cookbook Book Cover
Multithreading in C# 5.0 Cookbook
$ 29.99
$ 21.00
Mastering Web Application Development with AngularJS Book Cover
Mastering Web Application Development with AngularJS
$ 26.99
$ 5.40
C# 6 and .NET Core 1.0: Modern Cross-Platform Development Book Cover
C# 6 and .NET Core 1.0: Modern Cross-Platform Development
$ 39.99
$ 28.00
Bootstrap for ASP.NET MVC Book Cover
Bootstrap for ASP.NET MVC
$ 19.99
$ 14.00