+ All Categories
Home > Technology > Net 451 in action

Net 451 in action

Date post: 08-Sep-2014
Category:
Upload: suthep-sangvirotjanaphat
View: 2,887 times
Download: 1 times
Share this document with a friend
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.
Popular Tags:
20
.NET 4.5.1 In Action Suthep Sangvirotjanaphat http://GreatFriends.Biz Founder and Instructor Thailand’s Microsoft MVP fb.com/ greatfriends.bi z
Transcript
Page 1: Net 451 in action

.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

Agenda

EF 6 ASP.NET

WebAPI 2 SignalR 2

MVC 5

Demonstrations

Page 3: Net 451 in action

Entity Framework 6

Page 4: Net 451 in action

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

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

DemoEF 6

Page 7: Net 451 in action

One ASP.NET

Page 8: Net 451 in action

ASP.NET

Web Forms

Websites

Web-pages

Single-PageApps

MVC Web API SignalR

Services

One ASP.NET

Page 9: Net 451 in action

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

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

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

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

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

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

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

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

Demo

EF6ASP.NET MVC 5

Page 18: Net 451 in action

Class Model

Page 19: Net 451 in action

Business logic

Page 20: Net 451 in action

Thank You fb.com/

greatfriends.biz


Recommended