4 packages tagged with “SkinnyControllers”
** C# 9.0 ONLY ** Autogenerates public methods from a class . ( replace below single quotes with double quotes) [AutoMethods(template = TemplateMethod.CallerAtttributes, MethodPrefix ='pub', MethodSuffix ='bup')] partial class Person { public string LastName { get; set; } public string FirstName { get; set; } private string pubFullName() { return FirstName + ' ' + LastName; } private void pubWriteToConsoleFullName() { Console.WriteLine(this.FullName()); } } // it will generate for this class the public methods public string FullName public string WriteToConsoleFullName Add also Nuget package AOPMethodsGenerator You can have your own template - read the readme.txt
** C# 9.0 ONLY ** Autogenerates public methods from a class . ( replace below single quotes with double quotes) [AutoMethods(template = TemplateMethod.CallerAtttributes, MethodPrefix ='pub', MethodSuffix ='bup')] partial class Person { public string LastName { get; set; } public string FirstName { get; set; } private string pubFullName() { return FirstName + ' ' + LastName; } private void pubWriteToConsoleFullName() { Console.WriteLine(this.FullName()); } } // it will generate for this class the public methods public string FullName public string WriteToConsoleFullName Add also Nuget package AOPMethodsCommon You can have your own template - read the readme.txt
Autogenerates actions to a controller from a class . ( 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