Generate Entities from database

In the docs I can see how to generate AutoQiery/Crud services from a database but is there anyway to just generate a list of entity classes so I can manually use OrmLite to query an existing database?

AutoQuery AutoGen is the solution for generating AutoQuery APIs and Data Models where you can limit which AutoQuery APIs are generated with IncludeCrudOperations property, e.g. you can use an empty array if don’t want any APIs generated, i.e. just generate the data models with:

x csharp https://localhost:5001 -path /crud/all/csharp -q IncludeCrudOperations=[]

Or from a URL:

https://localhost:5001/crud/all/csharp?IncludeCrudOperations=[]

Other options for customizing generation available on the CrudCodeGenTypes Request DTO.

1 Like