DevIntersections 2014 Web API Slides

  • 156 views
Uploaded on

This deck is the one I used at DevIntersections 2014 in Orlando for my Web API talk.

This deck is the one I used at DevIntersections 2014 in Orlando for my Web API talk.

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
156
On Slideshare
0
From Embeds
0
Number of Embeds
1

Actions

Shares
Downloads
3
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. DEVintersection Building Restful Services by Using ASP.NET WebAPI & Entity Framework Brady Gaster bradyg@microsoft.com @bradygaster bradygaster.com
  • 2. 2 © DEVintersection. All rights reserved. http://www.DEVintersection.com Introduction  Overview  New features in Entity Framework 6  Enabling and Running Entity Framework Migrations  Using Entity Framework to Update Database Structure  New features in ASP.NET Web API  Scaffolding Web API using new Visual Studio 2013 Features  Fixing Common Web API Serialization & Circular Reference Issues  Web API & OData (and LinqPad for good measure!)  Accessing Web APIs from Native Code  Accessing Web APIs from HTML  Questions  Let’s hold them until the end, as there’ll be time for discussion
  • 3. Demo Reverse-engineering a Database to Code First Entities
  • 4. Demo Enabling and Running EF Migrations
  • 5. Demo Updating Table Structure using EF Migrations
  • 6. Demo A New Web API Help Page
  • 7. Demo Controlling Your Web API Formatters
  • 8. Demo Scaffolding a Web API Controller from an EF Entity
  • 9. Demo Mitigating Circular References
  • 10. Demo Scaffolding a Web API OData Controller
  • 11. Demo Querying OData
  • 12. Demo Accessing a REST Endpoint from Native Code
  • 13. Demo Accessing a REST Endpoint from HTML
  • 14. 14 © DEVintersection. All rights reserved. http://www.DEVintersection.com Final Comments  Web API is REST on ASP.NET  Entity Framework 6.1  Code First Generation from Existing Databases  Need to reference EF 6.1 in your project to enable the tooling  Web API Configuration  Pick your formatters wisely, according to needs  Use JSON.NET and EF attributes to control de/serialization  New scaffolding features in VS 2013 make life easier
  • 15. 15 © DEVintersection. All rights reserved. http://www.DEVintersection.com References  Web API on ASP.NET http://www.asp.net/web-api  Entity Framework on MSDN http://msdn.microsoft.com/en-us/data/ef.aspx  Visual Studio Toolbox on Channel 9 http://channel9.msdn.com/Shows/Visual-Studio-Toolbox
  • 16. Questions? Thank you! Don’t forget to enter your evaluation of this session using EventBoard!