WCF 4.0 Multi-tier Services Development with LINQ to Entities

Build SOA applications on the Microsoft platform with this hands-on WCF 4.0 book and eBook guide updated for VS2010
Preview in Mapt

WCF 4.0 Multi-tier Services Development with LINQ to Entities

Mike Liu

Build SOA applications on the Microsoft platform with this hands-on WCF 4.0 book and eBook guide updated for VS2010
Mapt Subscription
FREE
$29.99/m after trial
eBook
$21.00
RRP $29.99
Save 29%
Print + eBook
$49.99
RRP $49.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
$21.00
$49.99
$29.99p/m after trial
RRP $29.99
RRP $49.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


WCF 4.0 Multi-tier Services Development with LINQ to Entities Book Cover
WCF 4.0 Multi-tier Services Development with LINQ to Entities
$ 29.99
$ 21.00
WCF Multi-tier Services Development with LINQ Book Cover
WCF Multi-tier Services Development with LINQ
$ 26.99
$ 18.90
Buy 2 for $35.00
Save $21.98
Add to Cart
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
 

Book Details

ISBN 139781849681148
Paperback348 pages

Book Description

WCF is the Microsoft model for building services, whereas LINQ to Entities is the Microsoft ORM for accessing underlying data storage. Want to learn both? You would normally have to dig through huge reference tomes—so wouldn't you agree that a simple-to-follow practical tutorial on WCF and LINQ to Entities is the way to get ahead?

This book is the quickest and easiest way to learn WCF and LINQ to Entities in Visual Studio 2010. WCF and LINQ to Entities are both powerful yet complex technologies from Microsoft—but you will be surprised at how easily this book will get you get up and running with them.

Mastery of these two topics will quickly enable you to create Service-Oriented applications, and allow you to take your first steps into the world of Service Oriented Architecture without becoming overwhelmed.

Through this book, you will learn what's going on behind the scenes with WCF, and dive into the basic yet most useful techniques for LINQ to Entities. You will develop three real-world multi-tiered WCF services from beginning to end, with LINQ to Entities being used in the data access layer of the services. Various clients including windows console applications, the WCF Test Client, Windows Form applications and WPF applications will be created to test these WCF services. By the end of this book, you will be 100% confident that you know WCF and LINQ to Entities, not only in theory, but with sound real-world experience.

Table of Contents

Chapter 1: Introducing Web Services and Windows Communication Foundation
What is SOA?
Web services
Web services: standards and specifications
WCF: Windows Communication Foundation
What is WCF?
Why is WCF used for SOA?
WCF architecture
Basic WCF concepts—WCF ABCs
WCF production and development environments
Summary
Chapter 2: Implementing a Basic HelloWorld WCF Service
Creating the HelloWorld solution and project
Creating the HelloWorldService service contract interface
Implementing the HelloWorldService service contract
Hosting the WCF service in ASP.NET Development Server
Creating a client to consume the WCF service
Summary
Chapter 3: Hosting and Debugging the HelloWorld WCF Service
Hosting the HelloWorld WCF service
Debugging the HelloWorld WCF service
Summary
Chapter 4: Implementing a WCF Service in the Real World
Why layer a service?
Creating a new solution and project using WCF templates
Creating the service interface layer
Adding a business logic layer
Summary
Chapter 5: Adding Database Support and Exception Handling to the RealNorthwind WCF Service
Adding a data access layer
Adding error handling to the service
Summary
Chapter 6: LINQ—Language Integrated Query
What is LINQ
Creating the test solution and project
New data type var
Automatic properties
Object initializer
Collection initializer
Anonymous types
Extension methods
Lambda expressions
Built-in LINQ extension methods and method syntax
LINQ query syntax and query expression
Built-in LINQ operators
Summary
Chapter 7: LINQ to Entities: Basic Concepts and Features
ORM—Object-Relational Mapping
Entity Framework
LINQ to Entities
Comparing LINQ to Entities with LINQ to Objects
Comparing LINQ to SQL with LINQ to Entities
Creating a LINQ to Entities test application
Creating the Data Model
Querying and updating the database with a table
View Generated SQL statements
Deferred execution
Deferred (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
Compiled query
Direct SQL
Dynamic query
Inheritance
Handling simultaneous (concurrent) updates
Transaction support
Adding validations to entity classes
Debugging LINQ to Entities programs
Summary
Chapter 9: Applying LINQ to Entities to a WCF Service
Creating the LINQNorthwind solution
Modeling the Northwind database
Copying the connection string to the service layer
Using LINQ to Entities in the data access layer
Adding concurrency support
Testing concurrency with WCF Test Client
Testing concurrency with our own client
Summary
Chapter 10: Distributed Transaction Support of WCF
Creating the DistNorthwind solution
Hosting the WCF service in IIS
Testing the transaction behavior of the WCF service
Enabling distributed transaction support
Understanding the distributed transaction support of a WCF service
Testing the distributed transaction support of the WCF service
Summary

What You Will Learn

  • Create, host, and consume your first WCF service in just a few minutes
  • Explore various hosting and debugging options for a WCF service
  • Build a multi-tier real-world WCF service from scratch to understand every layer of a WCF service and apply it to your real work
  • Add exception handling to your WCF services
  • Understand the basic and advanced concepts and features of LINQ and LINQ to Entities
  • Use LINQ to Entities in the data access layer of a WCF service
  • Control concurrent updates to databases with WCF and LINQ to Entities
  • Add distributed transaction support to your WCF services
  • Test a WCF service from a console program, the VS2010 built-in WCF Test Client, a Windows Form application, and a WPF test client

Authors

Table of Contents

Chapter 1: Introducing Web Services and Windows Communication Foundation
What is SOA?
Web services
Web services: standards and specifications
WCF: Windows Communication Foundation
What is WCF?
Why is WCF used for SOA?
WCF architecture
Basic WCF concepts—WCF ABCs
WCF production and development environments
Summary
Chapter 2: Implementing a Basic HelloWorld WCF Service
Creating the HelloWorld solution and project
Creating the HelloWorldService service contract interface
Implementing the HelloWorldService service contract
Hosting the WCF service in ASP.NET Development Server
Creating a client to consume the WCF service
Summary
Chapter 3: Hosting and Debugging the HelloWorld WCF Service
Hosting the HelloWorld WCF service
Debugging the HelloWorld WCF service
Summary
Chapter 4: Implementing a WCF Service in the Real World
Why layer a service?
Creating a new solution and project using WCF templates
Creating the service interface layer
Adding a business logic layer
Summary
Chapter 5: Adding Database Support and Exception Handling to the RealNorthwind WCF Service
Adding a data access layer
Adding error handling to the service
Summary
Chapter 6: LINQ—Language Integrated Query
What is LINQ
Creating the test solution and project
New data type var
Automatic properties
Object initializer
Collection initializer
Anonymous types
Extension methods
Lambda expressions
Built-in LINQ extension methods and method syntax
LINQ query syntax and query expression
Built-in LINQ operators
Summary
Chapter 7: LINQ to Entities: Basic Concepts and Features
ORM—Object-Relational Mapping
Entity Framework
LINQ to Entities
Comparing LINQ to Entities with LINQ to Objects
Comparing LINQ to SQL with LINQ to Entities
Creating a LINQ to Entities test application
Creating the Data Model
Querying and updating the database with a table
View Generated SQL statements
Deferred execution
Deferred (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
Compiled query
Direct SQL
Dynamic query
Inheritance
Handling simultaneous (concurrent) updates
Transaction support
Adding validations to entity classes
Debugging LINQ to Entities programs
Summary
Chapter 9: Applying LINQ to Entities to a WCF Service
Creating the LINQNorthwind solution
Modeling the Northwind database
Copying the connection string to the service layer
Using LINQ to Entities in the data access layer
Adding concurrency support
Testing concurrency with WCF Test Client
Testing concurrency with our own client
Summary
Chapter 10: Distributed Transaction Support of WCF
Creating the DistNorthwind solution
Hosting the WCF service in IIS
Testing the transaction behavior of the WCF service
Enabling distributed transaction support
Understanding the distributed transaction support of a WCF service
Testing the distributed transaction support of the WCF service
Summary

Book Details

ISBN 139781849681148
Paperback348 pages
Read More

Read More Reviews

Recommended for You

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
Mastering Web Application Development with AngularJS Book Cover
Mastering Web Application Development with AngularJS
$ 26.99
$ 5.40
MVVM Survival Guide for Enterprise Architectures in Silverlight and WPF Book Cover
MVVM Survival Guide for Enterprise Architectures in Silverlight and WPF
$ 29.99
$ 21.00
Windows Presentation Foundation 4.5 Cookbook Book Cover
Windows Presentation Foundation 4.5 Cookbook
$ 35.99
$ 25.20
Responsive Web Design with HTML5 and CSS3 Book Cover
Responsive Web Design with HTML5 and CSS3
$ 23.99
$ 4.80
Microsoft Silverlight 4 Data and Services Cookbook Book Cover
Microsoft Silverlight 4 Data and Services Cookbook
$ 35.99
$ 25.20