net 451 in action
DESCRIPTION
Slide deck from session ".NET 4.5.1 In Action" by Suthep Sangvirotjanaphat (Microsoft MVP / ASP.NET) in "Microsoft TechDays Thailand 2013" event on November 26, 2013 Shangri-la hotel.TRANSCRIPT
![Page 1: Net 451 in action](https://reader036.vdocuments.net/reader036/viewer/2022062510/540cf0088d7f728d7e8b46d1/html5/thumbnails/1.jpg)
.NET 4.5.1 In Action
Suthep Sangvirotjanaphathttp://GreatFriends.Biz Founder and InstructorThailand’s Microsoft MVP
fb.com/greatfriends.biz
![Page 2: Net 451 in action](https://reader036.vdocuments.net/reader036/viewer/2022062510/540cf0088d7f728d7e8b46d1/html5/thumbnails/2.jpg)
Agenda
EF 6 ASP.NET
WebAPI 2 SignalR 2
MVC 5
Demonstrations
![Page 3: Net 451 in action](https://reader036.vdocuments.net/reader036/viewer/2022062510/540cf0088d7f728d7e8b46d1/html5/thumbnails/3.jpg)
Entity Framework 6
![Page 4: Net 451 in action](https://reader036.vdocuments.net/reader036/viewer/2022062510/540cf0088d7f728d7e8b46d1/html5/thumbnails/4.jpg)
Entity Framework 6: Open Source
Not just the codeSource code
Nightly builds
Issue tracking
Feature specs
Design meeting notes
Accepting contributionsOnly EF team has commit rights
Same code review process as internal changes
Only affects how we develop, not how we shipSame license
Same support
Same quality
![Page 5: Net 451 in action](https://reader036.vdocuments.net/reader036/viewer/2022062510/540cf0088d7f728d7e8b46d1/html5/thumbnails/5.jpg)
What’s New in Entity Framework 6? Custom Code
First conventionsCode First mapping to store procedures
Connection resiliency
Code-based configuration
Configuration migrations history table
Multiple contexts per database
Async query and save
Dependency resolution
![Page 6: Net 451 in action](https://reader036.vdocuments.net/reader036/viewer/2022062510/540cf0088d7f728d7e8b46d1/html5/thumbnails/6.jpg)
DemoEF 6
![Page 7: Net 451 in action](https://reader036.vdocuments.net/reader036/viewer/2022062510/540cf0088d7f728d7e8b46d1/html5/thumbnails/7.jpg)
One ASP.NET
![Page 8: Net 451 in action](https://reader036.vdocuments.net/reader036/viewer/2022062510/540cf0088d7f728d7e8b46d1/html5/thumbnails/8.jpg)
ASP.NET
Web Forms
Websites
Web-pages
Single-PageApps
MVC Web API SignalR
Services
One ASP.NET
![Page 9: Net 451 in action](https://reader036.vdocuments.net/reader036/viewer/2022062510/540cf0088d7f728d7e8b46d1/html5/thumbnails/9.jpg)
No “upfront decision” on any ASP.NET technologyUnified dialog
One Project: Web Forms, MVC, Web API
Add any framework to any project
Scaffolding works across all frameworks
Configurable authentication
Bootstrap used for layout and stylingTemplates based on Bootstrap.js
Popular CSS layout framework
Many themes available
Completely new scaffolding system for One ASP.NETWeb application code generation based on your data model
Targets data-driven and CRUD boilerplate code
One ASP.NET
![Page 10: Net 451 in action](https://reader036.vdocuments.net/reader036/viewer/2022062510/540cf0088d7f728d7e8b46d1/html5/thumbnails/10.jpg)
One ASP.NETBrowser Link HighlightsIt improves the way you develop web apps; no need to start/stop. Just “refresh” and see how your app runs in browsers. Make changes in Visual Studio and force an update in connected browsers
A bi-directional channel
Built on open web standards
New HTML editor
AngularJS IntelliSense
Enable Edit and ContinueBy default for new web apps
Browser Link(“Artery”)
![Page 11: Net 451 in action](https://reader036.vdocuments.net/reader036/viewer/2022062510/540cf0088d7f728d7e8b46d1/html5/thumbnails/11.jpg)
What’s New in ASP.NET MVC 5?ASP.NET Identity Bootstrap Web API 2
Browser Links Scaffolding Attribute Routing
OWIN and Katana
SignalR 2
![Page 12: Net 451 in action](https://reader036.vdocuments.net/reader036/viewer/2022062510/540cf0088d7f728d7e8b46d1/html5/thumbnails/12.jpg)
ASP.NET Identity (a.k.a. Membership)
Complete rewrite of the old Membership feature
Default authentication against different storage providers
Easier to customize
Can be used from different ASP.NET technologies
Integrated with external logons through providers
Active Directory, Windows Azure Active Directory,
Microsoft Account, Facebook, Twitter, and Google
New Membership system
One ASP.NET Identity system
Supports claims-based authentication
Integrated with external logons
![Page 13: Net 451 in action](https://reader036.vdocuments.net/reader036/viewer/2022062510/540cf0088d7f728d7e8b46d1/html5/thumbnails/13.jpg)
Available as stand-alone NuGet packages
Web API security (CORS, OAuth 2.0)
Attribute routing
OWIN integration
Web API OData
ASP.NET Web API 2
![Page 14: Net 451 in action](https://reader036.vdocuments.net/reader036/viewer/2022062510/540cf0088d7f728d7e8b46d1/html5/thumbnails/14.jpg)
Cross-Origin Requests
Enable CORS in web APIPer action
Per controller
Globally
[EnableCors(origins: "http://www.example.com", headers: "*", methods: "*")]public class ItemsController : ApiController{ public HttpResponseMessage GetAll() { ... } public HttpResponseMessage GetItem(int id) { ... } public HttpResponseMessage Post() { ... }
[DisableCors] public HttpResponseMessage PutItem(int id) { ... }}
![Page 15: Net 451 in action](https://reader036.vdocuments.net/reader036/viewer/2022062510/540cf0088d7f728d7e8b46d1/html5/thumbnails/15.jpg)
What is ASP.NET SignalR?
Incredibly simple real-time web for .NETSimplicity
Reach
Performance
How can I use real-time functionality in my app?Anytime a user refreshes the page or you use pollingDashboards and monitoringCollaborative anythingGamingReal-time forms and concurrency management
![Page 16: Net 451 in action](https://reader036.vdocuments.net/reader036/viewer/2022062510/540cf0088d7f728d7e8b46d1/html5/thumbnails/16.jpg)
ASP.NET SignalR 2.0OWINSimplified dependency graph
Unified startup configuration story
Highly portable between IIS and self-host
Portable Class LibraryClient libs for WinRT, WPF, WP8 and SL5
OWIN integration
Portable Class Library client
Xamarin client (iOS, Android, and Mac)
C++ client for Windows
![Page 17: Net 451 in action](https://reader036.vdocuments.net/reader036/viewer/2022062510/540cf0088d7f728d7e8b46d1/html5/thumbnails/17.jpg)
Demo
EF6ASP.NET MVC 5
![Page 18: Net 451 in action](https://reader036.vdocuments.net/reader036/viewer/2022062510/540cf0088d7f728d7e8b46d1/html5/thumbnails/18.jpg)
Class Model
![Page 19: Net 451 in action](https://reader036.vdocuments.net/reader036/viewer/2022062510/540cf0088d7f728d7e8b46d1/html5/thumbnails/19.jpg)
Business logic
![Page 20: Net 451 in action](https://reader036.vdocuments.net/reader036/viewer/2022062510/540cf0088d7f728d7e8b46d1/html5/thumbnails/20.jpg)
Thank You fb.com/
greatfriends.biz