it:ad:odata:home

IT:AD:OData

[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));
}


!includeurl http://skysigal.com/_media/resources/configuration/plantuml/minimalist.txt

component "Application Facade (API)" as API {
component ApiController
}
component "Application Services" as AS {
component ApplicationService
}
component "Infrastructure Services" as IS {
component InfrastructureService
}
component "Domain Services" as DS{
component DomainService
}
ApiController -DOWN-> ApplicationService
ApplicationService -DOWN-> InfrastructureService
ApplicationService -DOWN-> DomainService

API -[HIDDEN]DOWN- AS
AS -[HIDDEN]DOWN-IS
AS -[HIDDEN]DOWN-DS
IS -[HIDDEN]RIGHT- DS