Overview Visual Studio 10 and .NET Framework 4.0
Post on 31-Dec-2015
48 Views
Preview:
DESCRIPTION
Transcript
Overview Visual Studio 10 and .NET Framework 4.0Ken CasadaDeveloper EvangelistMicrosoft Switzerlandkcasada@microsoft.comhttp://blogs.msdn.com/swiss_dpe_team/Default.aspx
Introduction
.NET 1.0 .NET 1.1 .NET 2.0
3.0
3.5
.NET 4.0
2002 2003 2005-08
CLR 1.0 CLR 1.1 CLR 2.0 CLR 4.0
Existing Side-By-Side (SxS)
.NET 2.0
2.0 add-
in
3.0
3.5
Host Process (e.g. Outlook)
3.0 add-
in
3.5 add-
in
1.1 add-
in
.NET 1.1
In-Process Side-By-Side (SxS)
.NET 2.0.NET 4.0
2.0 add-
in
3.0
3.5
Host Process (e.g. Outlook)
3.0 add-
in
3.5 add-
in
4.0 add-
in
.NET Dynamic Programming
DynamicLanguages
Simple and succinct
Implicitly typed
Meta-programming
No compilation
StaticLanguages
Robust
Performant
Intelligent tools
Better scaling
Dynamic vs. Static
C# and Visual BasicFocusing on language co-evolution…
C# 4.0 Visual Basic “10”
Named/Optional Parameters
Named/Optional Parameters
Dynamic Scoping Dynamic Scoping
Statement Lambdas Statement Lambdas
Multiline Lambdas Multiline Lambdas
Auto-Implemented Properties
Auto-Implemented Properties
Collection Initializers Collection Initializers
Generic Variance Generic Variance
On Single Core MachineDon’t block the UI
Thread Affinity
Async OperationsSynchronization Issues
On Multi-core MachineAs above...... plus Improve Actual Performance... plus create new user experiences
Multi-threading & Parallelism
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 Computing
Parallel LINQ
demo
.NET Framework 4.0: ClientClient ProfileWindows Presentation Foundation
Business focused controlsDataGrid, DatePicker, VSM Today part of the WPF Toolkit (update in March 09) http://www.codeplex.com/wpfAfter .NET 4.0 More controls (Chart controls, …)
Silverlight Synergy (DeepZoom control ?)
Win7 AdvancesMultitouch Windows API CodePack for .NET (http://windowsapicodepack.codeplex.com)
WPF 4.0within Visual Studio 10
demo
ASP.NET & AJAX 4.0ASP.NET MVC
Separation of Concerns, TestabilityHigh 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 IDASP.NET AJAX
Javascript UI Templates and DatabindingAJAX Control Toolkit Enhancements
Client-side controls
Addition of JQuery
WCF 4.0Messaging enhancements
Protocols - SOAP over UDP, WS-Discovery, WS-BusinessActivity, WS-I BP 1.2Duplex durable messaging
RESTful enhancementsSimplifying 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 enhancementsContent and context driven, One-way support
Seemless integration with Workflow Services
Workflow Foundation 4.0XAML-only workflows are the new default
Unified model between WF, WCF, and WPF
Extended base activity libraryMore activities will be present on CodePlex
WF 4.0 simplifies data flow by adding:Arguments, variables, and expressions
Significant improvements in performance and scalabilityNew FlowChart WorkflowImproved 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 interfaceWF describes internal flow & state transitions
Dublin (after .NET 4)
Microsoft Confidential
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 applicationsPart of the Windows Server Application Server roleExtensions built on top of IIS 7 with tracing, monitoring and diagnostic capabilities
Additional Resources
Microsoft Confidential
MSDN Developer Centers – .NET 3.5http://msdn.microsoft.com/wcf http://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/Dublinhttp://www.microsoft.com/net/dublin.aspx
Office development (No PIA)
ADO.NET 4.0Entity Framework v2
Persistent Ignorance (POCO)TDD-SupportForeign-Key SupportCode-First DevelopmentAutomatic Lazy Loading
Lazy Loading in EF v1var customers = from cust in db.Customers
where cust.City == “London" select cust;
foreach (Customer cust in customers){
// avoids unnecessary queries
if (!cust.Orders.IsLoaded){ cust.Orders.Load();}
foreach (Order order in cust.Orders){ // do something with detail}
}
Lazy Loading in EF v2var customers = from cust in db.Customers
where cust.City == “London" select cust;
db.DeferreadLoading = true;
foreach (Customer cust in customers){
foreach (Order order in cust.Orders){ // do something with detail}
}
Entity Framework
Demo
Save the date for tech·days next year!
14 – 15 avril 2010, CICG
Classic Sponsoring Partners
Premium Sponsoring Partners
top related