1 / 20

Deep Dive into ADO.NET Data Services

Deep Dive into ADO.NET Data Services. Agenda. Service Extensibility Custom Object Model Operation Batching ASP.NET AJAX client. Service Extensibility. Service Operations Query Interceptors Change Interceptors. Data Service. Data Model. Products. Categories. Service Operations.

eliza
Download Presentation

Deep Dive into ADO.NET Data Services

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Deep Dive into ADO.NET Data Services

  2. Agenda • Service Extensibility • Custom Object Model • Operation Batching • ASP.NET AJAX client

  3. Service Extensibility • Service Operations • Query Interceptors • Change Interceptors Data Service Data Model Products Categories

  4. Service Operations Data Service /GetBrakes GetBrakes() HTTP GET/POST Data Model Products Categories

  5. Query Interceptor /Products Data Service HTTP GET Query Interceptor Data Model Products Categories

  6. Change Interceptors /Products /Products(1) Data Service HTTP POST HTTP PUT/DELETE Change Interceptor Data Model Products Categories

  7. Service Extensibility – Why? • Service Operations • Business logic • Data shaping • Custom endpoint • Query Interceptor • Data filter • Row-level security • Change Interceptor • Business logic • Logging • Data modification

  8. Demo Service Extensibility

  9. Custom Object Model

  10. Demo Custom Object Model

  11. Operation Batching Without batching Data Service Context Data Service POST PUT POST DELETE DELETE 5 server hits Operations: Add Entity #1 Update Entity Add Entity #2 Delete Entity #1 Delete Entity #2

  12. Operation Batching With batching Data Service Context Data Service POST /$batch 1 server hit Operations: Add Entity Update Entity Add Entity #2 Delete Entity Delete Entity #2

  13. Operation Batching Without batching Data Service Context Data Service GET GET GET 3 server hits Operations: Get Entity #1 Get Entity #2 Get Entity #3

  14. Operation Batching With batching Data Service Context Data Service GET /$batch 1 server hit Operations: Get Entity #1 Get Entity #2 Get Entity #3

  15. Demo Operation Batching

  16. ASP.NET AJAX Client Client Server Sys.Data. DataService Data Service HTTP JSON Data Model

  17. ASP.NET AJAX Client • Sys.Data.ActionSequence • Sys.Data.DataService • Sys.Data.QueryBuilder

  18. Demo ASP.NET AJAX Client

  19. Summary • Service Extensibility • Query Batching • Custom Object Model • ASP.NET AJAX client

More Related