Creating web Apis Auto Gen Services code VIA Poco Classes.

NOVATROOP77 256 Reputation points

I am seeing to do this all the time create my services and interfaces is their no tool out their at present where it will take a poco class and create a service class based off that or the db context?

Im mostly creating web apis using swagger for the docs. I no I can use NSWAG for the client side but is their anything the same for the server side?.

A set of technologies in the .NET Framework for building web applications and XML web services.
2,840 questions
No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AgaveJoe 20,151 Reputation points

    but is their anything the same for the server side?.

    Right click the controllers folder and select Add -> New scaffolded item then choose "API Controller with actions, using Entity Framework".

    This will add the Entity framework code. If you don't need the Entity Framework code then choose "API Controller with read/write actions".