Browse by Tags

Tagged Content List
  • Blog Post: Creating a Data Service Provider – Part 7 – Update

    In Parts 1 thru 6 we created a custom Read/Only provider over an in memory list of Products. Now it’s time to add update support. To do that we need to add an implementation of IDataServiceUpdateProvider . But first lets talk about the… Implications of Batching The IDataServiceUpdateProvider...
  • Blog Post: Creating a Data Service Provider – Part 6 – Query Interactions

    Whenever I find myself implementing a series of interfaces to plug into a framework or server, I always find myself wondering how the server will call my implementations. For me this is about forming a mental model to simplify how I think about what I’m doing. In fact as I’ve been doing this DSP...
  • Blog Post: Creating a Data Service Provider – Part 5 - Query

    In Part 4 of our series showing how to implement a Custom Data Service Provider we hooked up an incomplete implementation of IDataServiceQueryProvider , just enough to get the ServiceDocument and $metadata working. In this part we’ll get query working too. To do that we need to know where the data...
  • Blog Post: Creating a Data Service Provider – Part 4 – Minimal Running Service

    This is Part 4 of my ongoing series of posts showing how to create an Custom Data Service Provider . NOTE: I’ve done a little refactoring to the code in Part 3 to simplify the code in this post, so be sure to check that out if you’ve been following along. In Parts 2 & 3 we hooked up our implementation...
  • Blog Post: Custom Data Service Providers

    Introduction Data Services sits above a Data Service Provider, which is responsible for interacting with the underlying Data Source on behalf of the Data Service. Data Services ships with some internal providers, and makes it possible for you to create custom providers too. So the obvious question...
  • Blog Post: Creating a Data Service Provider – Part 2 – IServiceProvider & DataSources

    To create a read-only Data Service Provider (or DSP) you need to implement two Data Services interfaces: IDataServiceMetadataProvider to provide the metadata and IDataServiceQueryProvider to handle the queries. But first Data Services needs a way to find your implementations. IServiceProvider ...
  • Blog Post: Creating a Data Service Provider – Part 1 - Intro

    One of the the coolest things about Data Services is its provider model. Any data-source can be exposed as an OData Data Service simply by implementing a few interfaces. SharePoint 2010 implements these interfaces to expose list data, and you can too, to expose just about anything: Facebook? Twitter...
  • Blog Post: Tip 49 – How to find your Data Service bug

    I’ve been playing around with creating a custom Astoria Data Service Provider , aka DSP, for a while now. So far I’d managed to get my metadata all setup, so browsing to $metadata works great. I’d got a few simple queries work. Basically everything was going fine. At least until I tried this URL: I wasn...
  • Blog Post: Tip 48 – How to host a Data Service in WCF

    Every wonder if you can host an Astoria Data Service in WCF? Well turns out the answer is yes, in fact once you’ve got your references set up etc it is pretty easy. Step 1 – Setting up your project Here is what my working project looks like: In this example I am using VS 2010 beta 2, but this should...
  • Blog Post: Tip 38 – How to use CodeOnly with Astoria

    The normal way that you create an ADO.NET Data Services (aka Astoria) Service is by creating a class that derives from DataService<T>. public class BloggingService : DataService<BloggingEntities> And if you want to use Entity Framework under the hood the T you supply must derive from...
  • Blog Post: And while you are at it… why can’t I compose REST calls?

    In my last post I asked why you can’t compose SOA method calls efficiently. With REST services like ADO.NET Data Services having nice uniform URLs too, and a model (aka EDM) why can’t I compose those with my SOA methods too: i.e. expounding on my earlier example: var manager = GetManager(GetDepartment...
Page 1 of 1 (11 items)