Meta-Me

Parsing OData Paths, $select and $expand using the ODataUriParser

UPDATE: This post was updated on May 29th 2013 to reflect changes to simplify the SelectExpandClause...

Author: Alex D James Date: 05/10/2013

OData in WebAPI – RC release

Next week we will release an official RC of the Microsoft ASP.NET WebAPI OData assembly. This marks...

Author: Alex D James Date: 12/07/2012

Parsing $filter and $orderby using the ODataUriParser

Background and Plans For a while now we’ve been shipping an early pre-release version of an...

Author: Alex D James Date: 12/06/2012

OData in WebAPI – Microsoft ASP.NET Web API OData 0.2.0-alpha release

Since my last set of blog posts on OData support in WebAPI (see parts 1 & 2) we’ve been busy...

Author: Alex D James Date: 11/02/2012

Web API [Queryable] current support and tentative roadmap

The recent preview release of OData support in Web API is very exciting (see the new nuget package...

Author: Alex D James Date: 08/20/2012

CQRS with OData and Actions?

I love the Actions feature in OData – which is hardly surprising given I was one of its...

Author: Alex D James Date: 02/03/2012

Judgment

In my last post I blithely said 'This is where judgment comes in...'. Unfortunately judgment isn't...

Author: Alex D James Date: 06/06/2011

How do I do design?

For a while now I've been thinking that the best way to get better at API & protocol design is...

Author: Alex D James Date: 06/03/2011

TechEd 2010 Videos

If you didn't get to TechEd - no problem - videos of all the sessions are available here. Including...

Author: Alex D James Date: 06/12/2010

OData - WCF Data Services Best Practices from TechEd

Yesterday I promised to share all the code from my Best Practices – Creating an OData Service...

Author: Alex D James Date: 06/10/2010

Creating a Data Service Provider – Part 9 – Un-typed

Background info: This post builds on Parts 1 thru 8 which teach you how to create a typed Data...

Author: Alex D James Date: 03/02/2010

Tip 55 - How to extend an IQueryable by wrapping it.

Over the last couple of years I’ve found myself in lots of situations where I’ve wanted to get...

Author: Alex D James Date: 03/01/2010

Creating a Data Service Provider – Part 8 - Relationships

In parts 1 thru 7 we made a Read / Write typed data service provider, although it was a little...

Author: Alex D James Date: 02/23/2010

Is hiding lower level APIs bad?

There are many good arguments for hiding away the lower layers in your stack – essentially the...

Author: Alex D James Date: 02/22/2010

Tip 54 – How to improve performance using Statement Expressions

Background: While writing the update post in my Data Service Provider series I ended up writing this...

Author: Alex D James Date: 02/13/2010

Tip 53 – How to debug EF POCO mapping issues

If you are trying to use POCO classes in EF 4.0, it is relatively easy to run into problems with the...

Author: Alex D James Date: 02/11/2010

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...

Author: Alex D James Date: 02/11/2010

Tip 52 – How to re-use Types with the Data Services client

By default when you add a Data Service Service Reference you get automatic code-generation, which...

Author: Alex D James Date: 01/27/2010

Tip 51 – How to load EF metadata from arbitrary streams

In Tip 45 I showed you how to build a connection string at runtime, which is pretty nifty. The...

Author: Alex D James Date: 01/26/2010

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...

Author: Alex D James Date: 01/25/2010

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...

Author: Alex D James Date: 01/19/2010

Tip 50 – How to query a Data Service using JQuery

Recently I’ve been spending some of my time playing with JQuery. And because Data Services can...

Author: Alex D James Date: 01/18/2010

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....

Author: Alex D James Date: 01/14/2010

Creating a Data Service Provider – Part 3 - IDataServiceMetadataProvider

UPDATE: I’ve made a few updates to the code / write-up to reflect refactors I’ve made as I’ve...

Author: Alex D James Date: 01/07/2010

Custom Data Service Providers

Introduction Data Services sits above a Data Service Provider, which is responsible for interacting...

Author: Alex D James Date: 01/07/2010

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...

Author: Alex D James Date: 01/07/2010

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...

Author: Alex D James Date: 01/04/2010

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...

Author: Alex D James Date: 12/11/2009

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...

Author: Alex D James Date: 12/10/2009

Tip 47 – How fix-up can make it hard to change relationships

Problem: Take this code: Category oldCategory = ctx.Categories .Include("Products") .First(c =>...

Author: Alex D James Date: 12/01/2009

Tip 46 – How to exclude a property using Code-Only

This time a real simple one prompted by this question on StackOverflow. Problem: If you tell the...

Author: Alex D James Date: 11/29/2009

Tip 45 – How to swap EF metadata at runtime.

Background By default the Entity Framework embeds its metadata inside your assembly as a resource....

Author: Alex D James Date: 11/29/2009

Tip 44 – How to navigate an OData compliant service

I recently did a crash course in Data Services and OData. While doing so I realized my notes might...

Author: Alex D James Date: 11/18/2009

Tip 43 – How to authenticate against a Data Service

Problem: When writing code against a Data Service, like say SharePoint, the client application must...

Author: Alex D James Date: 11/13/2009

Interesting series of Posts exploring Code-Only

Daniel Wertheim left a couple of comments on Tip 42, that point to a series of posts he has written...

Author: Alex D James Date: 11/13/2009

Tip 42 – How to create a dynamic model using Code-Only

Background: When we give examples of how to use Code-Only we always start with a strongly typed...

Author: Alex D James Date: 11/09/2009

Tip 40 – How to materialize presentation models via L2E

Problem: Imagine that you have these entities public class Product { public int ID { get; set; }...

Author: Alex D James Date: 11/07/2009

Tip 39 – How to set overlapping Relationships – EF 4.0 only

Scenario: In EF 4 we have FK relationships, available for the first time in .NET 4.0 Beta 2, so it...

Author: Alex D James Date: 11/01/2009

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...

Author: Alex D James Date: 10/14/2009

Code-Only best practices

There have been lots of posts on the EFDesign blog talking about how the features in Code Only have...

Author: Alex D James Date: 10/13/2009

Tip 37 – How to do a Conditional Include

Problem Someone asked how to do a Conditional Include a couple of days ago on StackOverflow. They...

Author: Alex D James Date: 10/12/2009

Tagging File Systems?

I had an interesting in passing conversation with someone today about tagging file systems… which...

Author: Alex D James Date: 10/09/2009

Tip 36 – How to Construct by Query

While writing my tips series and writing EF controllers for MVC I found that I regularly wanted to...

Author: Alex D James Date: 09/23/2009

Tip 35 – How to write OfTypeOnly()

If you write a LINQ to Entities query like this: var results = from c in...

Author: Alex D James Date: 09/17/2009

Tip 34 – How to work with Updatable Views

UPDATE: thanks Zeeshan for pointing out that by default only non-nullable columns end up in the key...

Author: Alex D James Date: 09/01/2009

Tip 33 – How cascade delete really works in EF

Imagine that in your database you have a cascade delete on an FK relationship. Something like this:...

Author: Alex D James Date: 08/18/2009

Tip 32 – How to create a database from SSDL – EF 4 only

We recently released a CTP that extends EF 4 Beta 1 which included Code Only. You can read more...

Author: Alex D James Date: 08/11/2009

Next>