Info
Version: | 2023.5.14.2055 |
Author(s): | Andrei Ignat |
Last Update: | Sunday, May 14, 2023 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://github.com/ignatandrei/SkinnyControllersGenerator/ |
NuGet Url: | https://www.nuget.org/packages/SkinnyControllersGenerator |
Install
Install-Package SkinnyControllersGenerator
dotnet add package SkinnyControllersGenerator
paket add SkinnyControllersGenerator
SkinnyControllersGenerator Download (Unzip the "nupkg" after downloading)
Dependencies
- Microsoft.CodeAnalysis.CSharp(>= 3.8.0)
- Scriban(>= 3.0.2)
- ThisAssembly.AssemblyInfo(>= 1.0.0)
- ThisAssembly.Project(>= 1.0.0)
Tags
( replace below single quotes with double quotes)
[AutoActions(template = TemplateIndicator.AllPost,FieldsName =new[] { '*' }, ExcludeFields =new[]{'_logger'})]
[ApiController]
[Route('[controller]/[action]')]
public partial class WeatherForecastController : ControllerBase{
// it will generate for this field
private readonly RepositoryWF repository;
Add also Nuget package SkinnyControllersGenerator
You can have your own template - read the readme.txt.