290 likes | 445 Vues
Overview Visual Studio 10 and .NET Framework 4.0. Ken Casada Developer Evangelist Microsoft Switzerland kcasada@microsoft.com http://blogs.msdn.com/swiss_dpe_team/Default.aspx. Introduction. 3.5. 3.0. .NET 1.0. .NET 1.1. .NET 2.0. .NET 4.0. 2002. 2003. 2005-08. CLR 1.0. CLR 1.1.
E N D
Overview Visual Studio 10 and .NET Framework 4.0 Ken Casada Developer Evangelist Microsoft Switzerland kcasada@microsoft.com http://blogs.msdn.com/swiss_dpe_team/Default.aspx
Introduction 3.5 3.0 .NET 1.0 .NET 1.1 .NET 2.0 .NET 4.0 2002 2003 2005-08 CLR 1.0 CLR 1.1 CLR 2.0 CLR 4.0
Existing Side-By-Side (SxS) 1.1 add-in 2.0 add-in 3.0 add-in 3.5 add-in 3.5 .NET 1.1 3.0 .NET 2.0 Host Process (e.g. Outlook)
In-Process Side-By-Side (SxS) 2.0 add-in 3.0 add-in 3.5 add-in 4.0 add-in 3.5 .NET 4.0 3.0 .NET 2.0 Host Process (e.g. Outlook)
.NET DynamicProgramming Dynamic vs. Static
C# and Visual Basic Focusing on language co-evolution…
Multi-threading & Parallelism On Single Core Machine • Don’t block the UI • Thread Affinity • Async Operations • Synchronization Issues On Multi-core Machine • As above... • ... plus Improve Actual Performance • ... plus create new user experiences
Parallel Computing Parallel Extensions is a .NET Library that supports declarative and imperative data parallelism, imperative task parallelism, and a set of data structures that make coordination easier. • Parallel LINQ (PLINQ) • Task Parallel Library (TPL) • Coordination Data Structures (CDS) Parallel Extension June 2008 CTP
Parallel LINQ demo
.NET Framework 4.0: Client • Client Profile • Windows Presentation Foundation • Business focused controls • DataGrid, DatePicker, VSM Today part of the WPF Toolkit (update in March 09) http://www.codeplex.com/wpf • After .NET 4.0 More controls (Chart controls, …) • Silverlight Synergy (DeepZoom control ?) • Win7 Advances • Multitouch Windows API CodePack for .NET (http://windowsapicodepack.codeplex.com)
ASP.NET & AJAX 4.0 • ASP.NET MVC • Separation of Concerns, Testability • High control over market up • ASP.NET Dynamic Data support for MVC • Easily Create Custom controls and views based on data base • ASP.NET better CSS and ID • ASP.NET AJAX • Javascript UI Templates and Databinding • AJAX Control Toolkit Enhancements • Client-side controls • Addition of JQuery
WCF 4.0 • Messaging enhancements • Protocols - SOAP over UDP, WS-Discovery, WS-BusinessActivity, WS-I BP 1.2 • Duplexdurablemessaging • RESTful enhancements • Simplifying the building of REST Singleton & Collection Services, ATOM Feed and Publishing Protocol Services, and HTTP Plain XML Services using WCF WCF REST Starter Kit released on Codeplex to get early feedback • Correlation enhancements • Content and context driven, One-way support • Seemless integration with Workflow Services
Workflow Foundation 4.0 • XAML-only workflows are the new default • Unified model between WF, WCF, and WPF • Extended base activity library • More activities will be present on CodePlex • WF 4.0 simplifies data flow by adding: • Arguments, variables, and expressions • Significant improvements in performance and scalability • New FlowChart Workflow • Improved WF 4.0 designer / Designer Rehosting
WF 4.0 Basics demo
WCF and WF • There is great potential in WF + WCF • .NET 3.0 didn't provide any integration • .NET 3.5 added initial WCF support • .NET 4.0 is investing heavily in this area Workflow Services !!! • Think "WCF on the outside, WF on the inside" • WCF exposes external interface • WF describes internal flow & state transitions
Microsoft Confidential Dublin (after .NET 4) • IIS 7/WAS is today’s hosting environment for WCF service and WF workflows (WorkflowServiceHost class) • Provides valuable hosting and management features for your WCF and WF applications • Part of the Windows Server Application Server role • Extensions built on top of IIS 7 with tracing, monitoring and diagnostic capabilities
Microsoft Confidential Additional Resources • MSDN Developer Centers – .NET 3.5http://msdn.microsoft.com/wcfhttp://msdn.microsoft.com/wf • MSDN Developer Centers – .NET 4.0http://msdn.microsoft.com/wcf/future/http://msdn.microsoft.com/wf/future/ • WF/WCF Team Bloghttp://blogs.msdn.com/endpoint/ • Dublin http://www.microsoft.com/net/dublin.aspx
ADO.NET 4.0 • Entity Framework v2 • Persistent Ignorance (POCO) • TDD-Support • Foreign-Key Support • Code-First Development • Automatic Lazy Loading
Lazy Loading in EF v1 varcustomers = fromcustindb.Customers where cust.City == “London"select cust; foreach (Customercust in customers) {// avoidsunnecessaryqueries if (!cust.Orders.IsLoaded){cust.Orders.Load();} foreach (Orderorder in cust.Orders){ // do somethingwithdetail} }
Lazy Loading in EF v2 varcustomers = fromcustindb.Customers where cust.City == “London"select cust; db.DeferreadLoading = true; foreach (Customercust in customers) {foreach (Orderorder in cust.Orders){ // do somethingwithdetail} }
Entity Framework Demo
Your MSDN resourcescheck out these websites, blogs & more! PresentationsTechDays: www.techdays.chMSDN Events: http://www.microsoft.com/switzerland/msdn/de/presentationfinder.mspxMSDN Webcasts: http://www.microsoft.com/switzerland/msdn/de/finder/default.mspx MSDN EventsMSDN Events: http://www.microsoft.com/switzerland/msdn/de/events/default.mspxSave the date: Tech•Ed 2009 Europe, 9-13 November 2009, Berlin MSDN Flash (our by weekly newsletter)Subscribe: http://www.microsoft.com/switzerland/msdn/de/flash.mspx MSDN Team BlogRSS: http://blogs.msdn.com/swiss_dpe_team/Default.aspx Developer User Groups & CommunitiesMobile Devices: http://www.pocketpc.ch/Microsoft Solutions User Group Switzerland: www.msugs.ch.NET Managed User Group of Switzerland: www.dotmugs.chFoxPro User Group Switzerland: www.fugs.ch
Your TechNet resourcescheck out these websites, blogs & more! PresentationsTechDays: www.techdays.ch TechNet EventsTechNet Events: http://technet.microsoft.com/de-ch/bb291010.aspx Save the date: Tech•Ed 2009 Europe, 9-13 November 2009, Berlin TechNet Flash (our by weekly newsletter)Subscribe: http://technet.microsoft.com/de-ch/bb898852.aspx Schweizer IT Professional und TechNet BlogRSS: http://blogs.technet.com/chitpro-de/ IT Professional User Groups & CommunitiesSwissITPro User Group: www.swissitpro.chNT Anwendergruppe Schweiz: www.nt-ag.chPASS (Professional Association for SQL Server): www.sqlpass.ch
Save the date for tech·days nextyear! 7. – 8. April 2010Congress Center Basel
Premium Sponsoring Partners Classic Sponsoring Partners Media Partner