WCF 4.5 Multi-Layer Services Development with Entity Framework by 2012

WCF 4.5 Multi-Layer Services Development with Entity Framework by 2012

Author:2012
Language: eng
Format: epub
Publisher: Packt Publishing


The program is now running and the cursor should be stopped on the first line of the method. Press F10 to move to the next line of code and press F10 again to step over this line of code:

IQueryable<Product> beverages = from p in NWEntities.Products where p.Category.CategoryName == "Beverages" orderby p.ProductName select p;

Switch to Profiler and you will find that there is nothing in there.

However, when you press F10 in Visual Studio and when the following statement is executed, you will see from the Profiler that a query has been executed in the database:

Console.WriteLine("There are {0} Beverages", beverages.Count());



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.