![]() The name parameter will be used for both the class name and the filename ( RoadsController.cs) Invoke the command, specifying that we want to use the “controller” generator To add this package, open your project’s. The aspnet-codegenerator CLI tools require a Nuget package, which is not included by default when creating projects via dotnet new. So, after creating all of my entities (or a subset of them for testing), I set out to look for a CLI alternative to creating new API controllers in Visual Studio. I also wanted to develop this project completely on my Mac to ensure it was cross-platform (as it will eventually run on a Raspberry Pi), and as a learning experience. ![]() This project was to be developed in ASP.NET Core with a Web API backend and Vue.js front-end. JMRI is a program used for setting up realistic, prototypical operations. Having to create the entities and create controllers for each of those was enough to start convincing me to not tackle this project.įor those unfamiliar, one of my hobbies is model railroading. Though I am only looking at very small subset of this program, there are still roughly 20-30 entities to create. I recently faced this issue when I wanted to start up a new hobby project, based on a program called JMRI (Java Model Railroad Interface). Starting a new project with many entities (objects) that require API endpoints can be quite daunting.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |