IT:AD:OData
- See also:
Summary
- A successor to RSS.
- Basis of IT:AD:OData which is used by IT:AD:WCF Data Services to offer LINQ over the wire.
Notes
[Queryable] public IQueryable<Category> GetCategories() { return db.Categories; } For single entities, return a SingleResult<T>, where T is an IQueryable that contains zero or one entities. [Queryable] public SingleResult<Category> GetCategory([FromODataUri] int key) { return SingleResult.Create(db.Categories.Where(c => c.ID == key)); }
Model
Resources
- Really useful: http://msdn.microsoft.com/en-us/library/ff478141.aspx
- http://www.asp.net/web-api/overview/odata-support-in-aspnet-web-api/using-$select,-$expand,-and-$value
- Great notes:
- Whether it's good or bad: