You can build an EDM model yourself. You can use the ODataConventionModelBuilder
class to build your EDM model. This tutorial has some sample code.
Also, checkout the samples on OData from here, especially the ODataServiceSample and ODataCompositeKeySample. They should get you started.
Also, if you do not have an IQueryable
, you could derive from ODataController
instead of EntitySetController
.