Your SlideShare is downloading. ×
0
DEVintersection
Building Restful Services by Using
ASP.NET WebAPI & Entity Framework
Brady Gaster
bradyg@microsoft.com
@br...
2
© DEVintersection. All rights reserved.
http://www.DEVintersection.com
Introduction
 Overview
 New features in Entity ...
Demo
Reverse-engineering a Database to Code First Entities
Demo
Enabling and Running EF Migrations
Demo
Updating Table Structure using EF Migrations
Demo
A New Web API Help Page
Demo
Controlling Your Web API Formatters
Demo
Scaffolding a Web API Controller from an EF Entity
Demo
Mitigating Circular References
Demo
Scaffolding a Web API OData Controller
Demo
Querying OData
Demo
Accessing a REST Endpoint from Native Code
Demo
Accessing a REST Endpoint from HTML
14
© DEVintersection. All rights reserved.
http://www.DEVintersection.com
Final Comments
 Web API is REST on ASP.NET
 En...
15
© DEVintersection. All rights reserved.
http://www.DEVintersection.com
References
 Web API on ASP.NET
http://www.asp.n...
Questions?
Thank you!
Don’t forget to enter your evaluation
of this session using EventBoard!
Upcoming SlideShare
Loading in...5
×

DevIntersections 2014 Web API Slides

209

Published on

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

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
209
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "DevIntersections 2014 Web API Slides"

  1. 1. DEVintersection Building Restful Services by Using ASP.NET WebAPI & Entity Framework Brady Gaster bradyg@microsoft.com @bradygaster bradygaster.com
  2. 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. 3. Demo Reverse-engineering a Database to Code First Entities
  4. 4. Demo Enabling and Running EF Migrations
  5. 5. Demo Updating Table Structure using EF Migrations
  6. 6. Demo A New Web API Help Page
  7. 7. Demo Controlling Your Web API Formatters
  8. 8. Demo Scaffolding a Web API Controller from an EF Entity
  9. 9. Demo Mitigating Circular References
  10. 10. Demo Scaffolding a Web API OData Controller
  11. 11. Demo Querying OData
  12. 12. Demo Accessing a REST Endpoint from Native Code
  13. 13. Demo Accessing a REST Endpoint from HTML
  14. 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. 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. 16. Questions? Thank you! Don’t forget to enter your evaluation of this session using EventBoard!
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×