CHAPTER 4 CLR AND BCL CHANGES 77 Native Code Enhancements I will not be covering changes to native code, so I have summarized some of the important changes here: • Support for real-time heap analysis. • New integrated dump analysis and debugging tools. • Tlbimp shared source is available f[r]
CHAPTER 4 67 CLR and BCL Changes Availability: Framework 4 In this chapter you will look at the changes to the common language runtime (CLR) in .NET 4.0 that cover changes to security, garbage collection, threading, and internationalization. You will then look into the n[r]
CHAPTER 4 CLR AND BCL CHANGES 72 Garbage Collection in .NET 4.0 So what’s changed then? Prior to .NET 4.0, a concurrent workstation GC could do most but not all of a generation 0 and 1 collection at the same time as a generation 2 collection. The GC was also unable to[r]
CHAPTER 7 WINDOWS COMMUNICATION FOUNDATION 172 HTTP Caching One of the biggest advantages to using RESTful services is that you can take advantage of HTTP caching features to improve performance and reduce load on the service. Caching wasn’t too easy to implement prior to WCF4 however it i[r]
CHAPTER 8 175 Entity Framework Entity Framework (EF) is Microsoft’s Object Relational Mapping (ORM) solution and was first released with .NET 3.5SP1. Entity Framework received much criticism when it was first released and the team at Microsoft has been hard at work to address s[r]
8. In Chapter7.WCFFindServices amend Program.cs to the following: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ServiceModel.Discovery; using System.ServiceModel; namespace Chapter7.WCFFindServices { class Program { static void Main(string[] a[r]
CHAPTER 8 ENTITY FRAMEWORK 185 What Happens If My Database Structure Changes? When you make changes to your database then you will also need to update your EDM. To update the model simply right-click on the design surface and select Update Model from Database. Visual Studio will the[r]
Note that the new pluralization feature doesn’t just stick an -s on the end of the table name. It is cleverer than that; for example, it knows when to append or remove -s, or when to modify the ending of a word to -ies (e.g., Category becomes Categories). Pluralization currently only works with[r]
BookingReference + &quot;in database&quot;]" /> </Sequence> </Activity> Yikes, probably not the sort of thing you want to be typing yourself. Invoking Workflows WF4 offers the ability to invoke individual activities without using the workflow r[r]
132 Workflow Designer The designer (Figure 6-4) is used to piece together your workflow, and contains tools for debugging and monitoring it. Figure 6-4. Workflow designer It is even possible to host the workflow designer within your application. For more information on this please ref[r]
CHAPTER 6 WINDOWS WORKFLOW FOUNDATION 4 133 Existing WF3 Users WF has undergone some radical changes from version 3.0, which unfortunately means that for those developers already utilizing WF3 are probably going to have to do some work to do to upgrade their applications. Statemachine Workf[r]
CHAPTER 6 WINDOWS WORKFLOW FOUNDATION 4 149 Figure 6-14. Final age validation work flow WCF/Messaging Improvements A number of enhancements have been introduced in WF4 to improve integration with WCF and to ease messaging scenarios. Correlation Correlation functionality first appear[r]
CHAPTER 7 159 Windows Communication Foundation Availability: Framework 4 Windows Communication Foundation (WCF) developers will be glad to know that this release of WCF shouldn’t break any existing applications. The focus in WCF 4 has been to make it easier to use while also br[r]
• Be running on Windows Server 2008 R2 and IIS 7.5. • Be written in ASP.NET 4.0. • To use add the setting below to the applicationHost.config file (held at C:\Windows\System32\inetsrv\config\): <applicationPools> <add name="ApressAppPool" startMode="AlwaysRunning"" /&am[r]
</system.web> </configuration> 6. If you want to run your app to see if the changes have occurred, open Default.aspx.cs and add the following code to Page_Load: Response.Write(System.Configuration.ConfigurationManager.AppSettings.Get("RunMode")); If you run your project[r]
CHAPTER 10 ASP.NET 238 Figure 10-5. Initiating one-click publishing ViewState ViewState is the mechanism by which ASP.NET stores the state of controls on a web form. This information is held in a hidden form value called __VIEWSTATE. Depending on the page’s content, ViewState can ge[r]
CHAPTER 11 251 Microsoft AJAX Library Visual Studio 2010 includes a new version of the Microsoft AJAX libraries that can be used in any web application. When working with the Microsoft AJAX library, many developers believe that it consists of little more than the[r]
CHAPTER 11 MICROSOFT AJAX LIBRARY 256 Controls Now Exposed as jQuery Plug-ins In this release, all the ASP.NET AJAX controls are exposed as jQuery plug-ins. So you can instantiate them using jQuery syntax, even making use of jQuery’s chaining capabilities. The following code attaches an AS[r]
CHAPTER 9 207 WCF Data Services Availability: .NET 3.5SP1 (limited functionality) onwards WCF Data Services (previously “Astoria” and ADO.NET Data Services) allows data to be modified and exposed over an HTTP RESTful interface. WCF Data Services (WDS) contains a rich query lang[r]