Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying WCF Multi-layer Services Development with Entity Framework - Fourth Edition
  • Table Of Contents Toc
WCF Multi-layer Services Development with Entity Framework - Fourth Edition

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

By : Mike Liu
4.2 (13)
close
close
WCF Multi-layer Services Development with Entity Framework - Fourth Edition

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

4.2 (13)
By: Mike Liu

Overview of this book

If you are a C#, VB.NET, or C++ developer and want to get started with WCF and Entity Framework, then this book is for you. Competence in Entity Framework will be needed to follow the examples in the book, but experience in creating WCF services using Entity Framework is not necessary. Developers and architects evaluating SOA implementation technologies for their company will find this book useful.
Table of Contents (15 chapters)
close
close
2
2. Hosting the HelloWorld WCF Service
14
Index

Viewing the generated SQL statements


You might wonder which SQL statements are used by LINQ to Entities to interact with the databases. In this section, we will use two ways to view the generated SQL statements used by LINQ to Entities queries. The first one is to use the ToString method and the second one is to use SQL Profiler.

Viewing the SQL statements using ToString

First, let's write a new test method to contain one LINQ to Entities query:

        static void ViewGeneratedSQL()
        {
            using(var NWEntities = 
                new NorthwindEntities())
           {

            var beverages = 
                from p in NWEntities.Products
                where p.Category.CategoryName == "Beverages"
                orderby p.ProductName
                select p;
            }
        }

Now, we can print out the SQL statement of the LINQ to Entities query using the following statement:

       // view SQL using ToString method
       Console.WriteLine("The SQL statement is:" +...
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
WCF Multi-layer Services Development with Entity Framework - Fourth Edition
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon