Creating web Apis Auto Gen Services code VIA Poco Classes.

NOVATROOP77 256 Reputation points
2022-01-29T21:21:22.077+00:00

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?.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,157 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AgaveJoe 26,201 Reputation points
    2022-01-30T13:07:52.54+00:00

    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".

    0 comments No comments