Download presentation
Presentation is loading. Please wait.
Published byCharlotte Wilcox Modified over 9 years ago
1
1 CONFIDENTIAL.NET 2015. FEATURES OVERVIEW C# 6 ASP.NET 5 DNX PROJECT ASP.NET MVC 6 EF 7 A UGUST 4, 2015
2
2 CONFIDENTIAL AGENDA C# 6 features ASP.NET 5 DNX project overview ASP.NET MVC 6 features Entity Framework 7
3
3 CONFIDENTIAL C# 6 FEATURES Getter-only auto-properties Auto-property initializers Expression-bodied members Null-conditional operators Using static members Index initializers String interpolation nameof operator Await in catch/finally Exception filters Extension Add in collection initializers Improved overload resolution
4
4 CONFIDENTIAL AUTO-PROPERTIES ENHANCEMENTS
5
5 CONFIDENTIAL CODE EXAMPLE
6
6 CONFIDENTIAL CIL (RESTORED IN C#)
7
7 CONFIDENTIAL NULL-CONDITIONAL OPERATOR
8
8 CONFIDENTIAL EXCEPTION FILTERS CIL (restored in C#)
9
9 CONFIDENTIAL CODE EXAMPLE
10
10 CONFIDENTIAL ASP.NET on OS X and Linux (no IIS required) No more Web Forms Grunt, Gulp, NPM and Bower support Merging of MVC, Web API and Web Pages into MVC 6 AngularJS support ASP.NET Dependency Injection Framework xUnit.net Complete rewrite of source code (now it based on.NET Core) WHAT’S NEW IN ASP.NET 5 https://github.com/aspnet
11
11 CONFIDENTIAL 2 1 3 DNX AND OTHER UTILITIES DNX.NET Execution Environment: – SDK and runtime environment for any platform; – It provides a host process, CLR hosting logic and managed entry point discovery. DNU.NET Development Utilities: – Install and manage library packages; – Package and publish our own application. DNVM.NET Version Manager: – Provides the configuration functionality; – Allows to specify which version of the DNX to use at the process, user, or machine level.
12
12 CONFIDENTIAL PROJECT.JSON Steps to compile and run the project: 1.dnu restore // restore the packages 2.dnu build // build the project 3.dnx. run // run the project
13
13 CONFIDENTIAL ASP.NET 5 Unified MVC and Web API controllers Async partials View Components (instead of child actions) with async support Tag Helpers ASP.NET DI support in controllers and views MVC 6 FEATURES
14
14 CONFIDENTIAL TAG HELPERS _ViewImports.cshtml
15
15 CONFIDENTIAL USING NAMEOF FOR STRONGLY TYPED LINKS
16
16 CONFIDENTIAL New platforms: Linux, OS X, Windows 10 UWP Non-relational stores support (Azure Table Storage, Redis, …) In Memory data provider Better extensibility RAM/CPU utilization optimization Partial model validation Code based modeling (no EDMX) Complete rewrite of source code (based on.NET Core) ENTITY FRAMEWORK 7
17
17 CONFIDENTIAL EF 7 PACKAGES
18
18 CONFIDENTIAL THANKS FOR ATTENTION! DMITRY VERESKUN, SARATOV, RUSSIA
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.