I have successfully generated the OData client code using this generator to access my Dynamics CRM WebApi services. Unfortunately for a vanilla organisation it generated a ~30 MB cs file. This is way to large as all I need is to access a few entities.
I know I can download the metadata for the OData service and manually edit before running the generator but I am looking for a more developer friendly way.
I have looked for a way to limit the metadata directly but it seems the xml metadata file is static: Fetching $metadata for a specific collection or entity with Odata web services in Microsoft Dynamics NAV 2016
What is the best way to generate proxy classes just for some entities?
EDIT: I actually tried to manually edit the metadata file by removing EntityType nodes and respective EntitySets but the tool complained about some interface IEdm... so still unsolved.