Tag Archives: Entity Framewok
Action Filter to support oData expands as EF includes in ASP.Net Web API
Back in March I wrote a quick howto on supporting $expand for entities in ASP.Net Web API. That method used an extension method to pull the $expand clause out of the query string an apply it to the ObjectSet. I’ve now added to that sample an ActionFilter which will do this for you without any [...]
6
Supporting oData expands for EF includes in ASP.Net Web API
Hold Up!!! Please see the updated (and much nicer) implementation using an ActionFilter. Following on from my previous post on creating a client API for ASP.Net Web API queryable oData services, I wanted to prove that expand clauses could also work for Entity Framework object sets. The oData URI conventions specifies that the desired depth [...]
Login