Download presentation
Presentation is loading. Please wait.
1
ASP.NET技术的发展 计算机信息工程系 龚赤兵 9/9/2017 6:11 PM
计算机信息工程系 龚赤兵 © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
2
本人编著的书籍: 《ASP.NET 2.0网站开发实例教程 》,人民邮电出版社,2006年7月
《Visual Studio 2008中的LINQ开发技术》,机械工业出版社,2009年1月 《ASP.NET 2.0网站开发案例教程 》, 中国水利水电出版社,2009年4月 Discussion Points: Visual Studio & .NET Framework Roadmap Visual Studio design goals Lap around new features Visual Studio multi-targeting, VSTS LINQ & CLR Add-ins Services & Workflows Windows, Web, Office, and Mobile applications I’m classifying this as a level 200 talk. There will be some slides, some demos, and I’ll show some code (primarily in C#). We have a lot of If this doesn’t sound like it’s the right session for you, then feel free to leave now. I will not be offended. For some of you who are currently using the .NET Framework 3.0 or have already started using Visual Studio 2008 and the .NET Framework 3.5, several of the things we’ll discuss will be a refresher. We are not going to discuss: Language enhancements Silverlight MFC – A number of the Windows Vista “look & feel” features are available simply by recompiling an MFC application. CLR enhancements ClickOnce improvements Partial trust hosting of add-ins Add-in activation: expand Activator to allow for out of process activation Jscript intellisense support for ASP.NET Ajax applications VSTS – improved support for performance tuning, testing 2
3
本人编著的书籍: 《ASP.NET 3.5入门指南》,人民邮电出版社,2009年4月
《ASP.NET 3.5 MVC体验与实战》,电子工业出版社,2009年9月 Discussion Points: Visual Studio & .NET Framework Roadmap Visual Studio design goals Lap around new features Visual Studio multi-targeting, VSTS LINQ & CLR Add-ins Services & Workflows Windows, Web, Office, and Mobile applications I’m classifying this as a level 200 talk. There will be some slides, some demos, and I’ll show some code (primarily in C#). We have a lot of If this doesn’t sound like it’s the right session for you, then feel free to leave now. I will not be offended. For some of you who are currently using the .NET Framework 3.0 or have already started using Visual Studio 2008 and the .NET Framework 3.5, several of the things we’ll discuss will be a refresher. We are not going to discuss: Language enhancements Silverlight MFC – A number of the Windows Vista “look & feel” features are available simply by recompiling an MFC application. CLR enhancements ClickOnce improvements Partial trust hosting of add-ins Add-in activation: expand Activator to allow for out of process activation Jscript intellisense support for ASP.NET Ajax applications VSTS – improved support for performance tuning, testing 3
4
Visual Studio 2008中的LINQ开发技术:
.NET 框架和 Visual Studio .NET 3.5框架 Visual Studio 2008新特性 LINQ Discussion Points: Visual Studio & .NET Framework Roadmap Visual Studio design goals Lap around new features Visual Studio multi-targeting, VSTS LINQ & CLR Add-ins Services & Workflows Windows, Web, Office, and Mobile applications I’m classifying this as a level 200 talk. There will be some slides, some demos, and I’ll show some code (primarily in C#). We have a lot of If this doesn’t sound like it’s the right session for you, then feel free to leave now. I will not be offended. For some of you who are currently using the .NET Framework 3.0 or have already started using Visual Studio 2008 and the .NET Framework 3.5, several of the things we’ll discuss will be a refresher. We are not going to discuss: Language enhancements Silverlight MFC – A number of the Windows Vista “look & feel” features are available simply by recompiling an MFC application. CLR enhancements ClickOnce improvements Partial trust hosting of add-ins Add-in activation: expand Activator to allow for out of process activation Jscript intellisense support for ASP.NET Ajax applications VSTS – improved support for performance tuning, testing 4
5
.NET 框架和 Visual Studio 2002年发布Visual Studio.NET 1.0, .NET框架1.0,C# 1.0
Discussion Points: Visual Studio & .NET Framework Roadmap Visual Studio design goals Lap around new features Visual Studio multi-targeting, VSTS LINQ & CLR Add-ins Services & Workflows Windows, Web, Office, and Mobile applications I’m classifying this as a level 200 talk. There will be some slides, some demos, and I’ll show some code (primarily in C#). We have a lot of If this doesn’t sound like it’s the right session for you, then feel free to leave now. I will not be offended. For some of you who are currently using the .NET Framework 3.0 or have already started using Visual Studio 2008 and the .NET Framework 3.5, several of the things we’ll discuss will be a refresher. We are not going to discuss: Language enhancements Silverlight MFC – A number of the Windows Vista “look & feel” features are available simply by recompiling an MFC application. CLR enhancements ClickOnce improvements Partial trust hosting of add-ins Add-in activation: expand Activator to allow for out of process activation Jscript intellisense support for ASP.NET Ajax applications VSTS – improved support for performance tuning, testing 5
6
.NET 框架和 Visual Studio 2006.11.6,框架.NET 3.0 2007.8.20发布C# 3.0
Discussion Points: Visual Studio & .NET Framework Roadmap Visual Studio design goals Lap around new features Visual Studio multi-targeting, VSTS LINQ & CLR Add-ins Services & Workflows Windows, Web, Office, and Mobile applications I’m classifying this as a level 200 talk. There will be some slides, some demos, and I’ll show some code (primarily in C#). We have a lot of If this doesn’t sound like it’s the right session for you, then feel free to leave now. I will not be offended. For some of you who are currently using the .NET Framework 3.0 or have already started using Visual Studio 2008 and the .NET Framework 3.5, several of the things we’ll discuss will be a refresher. We are not going to discuss: Language enhancements Silverlight MFC – A number of the Windows Vista “look & feel” features are available simply by recompiling an MFC application. CLR enhancements ClickOnce improvements Partial trust hosting of add-ins Add-in activation: expand Activator to allow for out of process activation Jscript intellisense support for ASP.NET Ajax applications VSTS – improved support for performance tuning, testing 6
7
.NET 框架和 Visual Studio Releases Major RTM 3.0 “Rosario” 3.5 RTM
VS 2008 Beta 2 .NET Framework 3.5 Beta 2 Out of band Releases VS Extensions for WF VS Extensions for WCF/WPF CTP Discussion Points: .NET Framework 3.0 First, if we travel back in time to November of 2006, Microsoft released the .NET Framework 3.0. .NET Framework 3.0 was installed by default with Windows Vista, however, it was also available as a installable component for Windows XP SP2 and Windows Server 2003. Visual Studio Extensions When we released the .NET Framework 3.0, we also released a couple of extensions for Visual Studio. The first extensions, called the Visual Studio 2005 Extensions for Windows Workflow Foundation, provided templates and design-time support for creating workflows within Visual Studio. It is worth noting that this was a complete and fully supported set of extensions. The second extensions were the Visual Studio Extensions for the Windows Communication Foundation and Windows Presentation Foundation November CTP. These extensions simply provided project and item templates for building WCF services and WPF applications. ASP.NET Ajax Shortly after the release of the .NET Framework 3.0, Microsoft also released the ASP.NET AJAX 1.0 extensions. These extensions are designed to enable web developers to build dynamic applications with ASP.NET 2.0. Visual Studio 2008 and .NET Framework 3.5 It’s important to understand these out-of-band releases as we look at Visual Studio 2008 and the .NET Framework Visual Studio 2008 and the .NET Framework 3.5 include enhanced versions of the technologies that have been released out-of-band, such as AJAX and design time support for WF, WPF, and WCF applications. At this point in time the beta 2 release of Visual Studio 2008 and the .NET Framework 3.5 are available. It is also worth mentioning that there is a go-live license available with the .NET Framework So you can deploy applications into production using this license. To be clear, there is a difference between licensed and supported. The .NET Framework 3.5 will not be supported until it is officially released. Visual Studio 2008 and the .NET Framework 3.5 are scheduled to be released at the end of and they will launch with Windows Server 2008 and SQL Server 2008 on Februrary 27th. Beyond the release of Visual Studio 2008 and the .NET Framework 3.5 Finally, next year we plan to release a major update to Visual Studio Team System and Team Foundation Server codenamed “Rosario”. ASP.NET AJAX 1.0 2006 2007 2008 © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION. 7
8
.NET 3.5框架 .NET Framework 3.5 .NET Framework 3.0 + SP1
LINQ ASP.NET 3.5 CLR Add-in Framework Additional Enhancements .NET Framework SP1 Windows Presentation Foundation Windows Communication Foundation Windows Workflow Foundation Windows CardSpace Do you or any of your customers suffer from…version confusion? I’m referring to .NET Framework versioning confusion. I know that I have frequently been asked by customers questions like: Discussion Points: So what is the .NET Framework 3.5? There is a fair amount of confusion about the different versions of the .NET Framework. It’s important that we spend a few minutes to clarify any confusion that might exist in this room. Let’s walk through this diagram: .NET Framework 3.5 The .NET Framework 3.5 is an incremental release of the .NET Framework. It provides several new enhancements including LINQ, ASP.NET 3.5, the CLR Add-in framework and several others. The .NET Framework 3.5 builds upon the previous versions of the framework, namely the .NET Framework 2.0 and More specifically, you can think of it as though the .NET Framework 3.5 has a dependency on the .NET Framework 3.0 with SP1 and 2.0 with SP1. .NET Framework 3.0 The .NET Framework 3.0, which was formerly known as WinFx, introduced several key new technologies including: Windows Presentation Foundation – provides the ability to build rich, interactive client applications Windows Communication Foundation – provides a common programming model for building services and connecting applications Windows Workflow Foundation – provides the ability to define declarative, long-running workflows Windows CardSpace – provides a safer and more secure alternative to username and password authentication within web sites and rich client applications .NET Framework 2.0 Finally, the .NET Framework 2.0, which was initially released in 2005 provides the common language runtime and base class libraries that are used by the .NET Framework 3.0 and 3.5 components. So how will developers get the .NET Framework 3.5? The .NET Framework 3.5 will be available as an optional update through Windows Update, as a bootstrapper installation, and as a full package. With all of these packages, your machine will be examined during the installation and the .NET Framework 2.0 with SP1, 3.0 with SP1, and the new 3.5 assemblies will be installed. The setup for the .NET Framework 3.5 will only install the necessary bits. So if the .NET Framework 2.0 or 3.0 is already installed, then only the service packs and the 3.5 bits will be added. .NET Framework SP1 8
9
Visual Studio 2008新特性 多重定向 支持多种.NET框架,2.0,3.0,3.5 单元测试 专业版本支持
Multi-targeting Traditionally developers have required tools that are bound to the runtime platform they are building against. With Visual Studio they can now use the one toolset and target the desired platform. Additionally, command line solutions will build using the toolset appropriate for the .NET Framework version that is being targeted Simplifies upgrading Multi-targeting is useful when you’re building a new project and you cannot take a dependency on the latest version of the framework, however it is also incredibly beneficial for upgrading existing projects. With multi-targeting you can upgrade to Visual Studio 2008 very easily because your project can continue to target older versions of the framework. As an example, within our Developer & Platform Evangelism group we created a sample application called DinnerNow. DinnerNow has approximately 37K lines of code and around 24 projects/assemblies. We simple opened up the DinnerNow solution files in Visual Studio 2008, which modified the sln files, and then recompiled our solutions with 0 errors and 0 warnings. That was on Beta 1 and it was such a smooth upgrade because of multi-targeting. Move existing Visual Studio applications to .NET Framework 3.5 gradually 9
10
LINQ(Language Integrated Query)
New programming model for data access that integrates query support directly within the .NET languages 减少访问数据的复杂性 可以运用于任何集合数据 好处: 一致的方式访问各种类型的数据 将数据作为对象来交互 集成到语言层面 智能感知提高效率 Discussion Points: Orcas significantly improves the way developers handle data. Traditionally developers have manipulated data differently depending on where the data resides and how the user connects to it. With the introduction of Language Integrated Query developers can now deal with data using a consistent programmatic approach and perform data access with new data design surfaces. LINQ aimes to reduce the complexity for developers and help boost their productivity through a set of extensions to the C# and Visual Basic programming languages as well as the Microsoft .NET Framework, which provides integrated querying for objects, databases, and XML data. Using LINQ, developers will be able to write queries natively in C# or Visual Basic without having to use specialized languages, such as Structured Query Language (SQL) and Xpath. With Visual Studio “Orcas”, you can work with data in the way that you want. You can create entire collections of objects from a database backend if you like. You can interact with data as rows or columns – whatever makes sense to your application. Language Integrated Query or “LINQ” will dramatically change the way we work with and program against data. By creating a common querying language in LINQ, we’ve freed you, the developer to focus on things that matter most to you. LINQ will provide you the ease of use you’ve come to expect with Visual Studio offering both IntelliSense and Autocompletion right in the IDE. Language Integrated Query provides native querying syntax in C# and VB.Net. This frees the developer from having to master independent data programmability technologies (e.g. Xpath, Xquery, T/SQL) and instead offers the developer a consistent way to query data. The best part is that the LINQ code you write is consistent whether your data store is a SQL Server, contained in a ADO.NET DataSet, an XML document, an EDM you create or even objects you create in memory. With Orcas, we have taken a more general approach and are adding general purpose query facilities to the .NET Framework that apply to all sources of information, not just relational or XML data. This facility is called .NET Language Integrated Query (LINQ). With Orcas and ADO.NET 3.5, LINQ is an inherent part of the C# and VB.Net languages offering both IntelliSense and Autocompletion. LINQ provides developers with a consistent query language which they in turn may use on various types of data. Be it Objects, XML, Datasets, SQL Server (or other databases with ADO.NET providers) and Entities. Any data that may be placed into a .NET collection of type IEnumerable<T> can be queried by LINQ. If you’ve written T/SQL in the past then LINQ will offer you familiar constructs for projections, restrictions, sorting and grouping such as Select, Where, GroupBy, and OrderBy. You can also adapt the query operators to your liking by using extension methods which can override their default behavior. 10
11
.NET Language Integrated Query
LINQ的架构 C# 3.0 VB 9.0 Others… .NET Language Integrated Query LINQ to Objects LINQ to DataSets LINQ to SQL LINQ to XML Discussion Points: LINQ is currently integrated directly into the native syntax for both C# 3.0 and VB 9.0 – which are included with Visual Studio 2008 Other languages may also support Language Integrated Query syntax in the future. There are many flavors of LINQ which we describe by the type of data it operates over. As you can see here, LINQ may operate over Objects, SQL, Datasets, and XML. These are the four flavors of LINQ that we are shipping with the .NET Framework 3.5 LINQ to Objects SQL-like queries for any .NET collection (or anything that implements Ienumerable) The LINQ to Objects API supports queries over any .NET collection, such as arrays and generic lists. This API is defined in the System.Linq namespaces inside System.Core.dll LINQ to objects is enabled by including the System.Linq namespace. Manipulating collections of objects, which can be related to each other to form a hierary or a graph. From a certain point of view, LINQ to Objects is the default implementation used by a LINQ query. LINQ to SQL Query enabled data access framework LINQ to XML Query enabled, smaller, faster XML DOM The important thing to remember is that the querying syntax used in LINQ is consistent regardless of the type of data you’re working with. FAQ Will there be support for Oracle with LINQ to SQL? There is no provider model for DLINQ. In order for a third party provider to support DLINQ, they would need to produce an entire API that mirrors DLINQ that covers everything from query generation to examining attributes on classes to providing a designer to interact with the database schema. Because there's a lower bar for enhancing a provider to support the Entity Framework (primarily just query generation), Oracle is only planning to support the Entity Framework. <book> <title/> <author/> <year/> <price/> </book> Objects Relational XML 11
12
9/9/2017 6:11 PM Demo © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION. © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION. 12
13
小结: 新技术的不断发展给老人压力,给新人机遇 培养自学能力,享受终身学习 ASP.NET 3.5课程的任选 英语的重要性 13
14
9/9/2017 6:11 PM 谢谢! © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION. © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION. 14
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.