Info
Version: | 1.0.3 |
Author(s): | Paul Ballew |
Last Update: | Sunday, March 31, 2019 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://github.com/pballew/TalosCore |
NuGet Url: | https://www.nuget.org/packages/TalosCore |
Install
Install-Package TalosCore
dotnet add package TalosCore
paket add TalosCore
TalosCore Download (Unzip the "nupkg" after downloading)
I decided to write it when I was creating microservices from scratch and I realized I was spending a lot of time implementing the same pattern of code based on simple schema.
Note: This is not intended to be addad as a package to a project using nuget. TalosCore is a dotnet core global tool. To install, just run "dotnet tool install -g TalosCore". Then you run it against your project from the command line with "TalosCore ./myproject" For more information, browse to the TalosCore project page on github: https://github.com/pballew/TalosCore
It uses definitions of Entity Framework Core entities and generates REST interface controllers and CQRS types to access them.
It first finds the DbContext class and parses out the DbSet properties. It takes that set of entities and then finds and parses the entity classes. then it generates the controller files as a REST API.
The API is a simple pattern of GetList, Get, Create, and Update--basic CRUD operations (though Delete isn't there just yet).
The resulting controller methods are not expected to be the final API for all projects, but is a baseline starting point that you can enhance to add relationships and logic to.