Download - Net 451 in action
.NET 4.5.1 In Action
Suthep Sangvirotjanaphathttp://GreatFriends.Biz Founder and InstructorThailand’s Microsoft MVP
fb.com/greatfriends.biz
Agenda
EF 6 ASP.NET
WebAPI 2 SignalR 2
MVC 5
Demonstrations
Entity Framework 6
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
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
DemoEF 6
One ASP.NET
ASP.NET
Web Forms
Websites
Web-pages
Single-PageApps
MVC Web API SignalR
Services
One ASP.NET
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
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”)
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
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
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
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) { ... }}
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
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
Demo
EF6ASP.NET MVC 5
Class Model
Business logic
Thank You fb.com/
greatfriends.biz