• AutoActions for Skinny controllers–user customization

    The generation of controllers actions is now very rude: Http Method: if the method has no arguments,I assume GET . Else it is POST How I can handle pure full REST API generation ? How I can handle level 3 REST API – https://martinfowler.com/articles/richardsonMaturityModel.html  ? How I can handle any other models,like https://blog.ploeh.dk/2020/10/26/fit-urls/ What is…

  • AutoActions for Skinny controllers-Templating-part1

    In order to do templating,I have transform all text generation into classes Example: code.AppendLine($”{fieldName}.{ms.Name}({parametersCall});”); into class MethodDefinition { public string ClassName { get; set; } public string Name { get; set; } public Type ReturnType; public bool ReturnsVoid; //name,type public Dictionary<string,string> Parameters; } ( of course,this definition has changed multiple times…) Then I have added…

  • Friday Links 402

    OAuth2 Social Logins – Facebook,Google,Twitter,PayPal – ASP.NET MVC C# open source library – CodeProject lepipele/OAuth2Login: Open source library providing social OAuth2 logins – Facebook,Google,Twitter,PayPal Gigaom | Unleashing A.I.-Powered Conversation With IBM Watson Revealing Secrets with R and Factor Analysis — Visual Studio Magazine mrochon/ASPNETRoleDiscovery: Console app reflecting over an ASP.NET assembly (and references) to discover…

  • AutoActions for Skinny controllers–small customizations

    Logging Roslyn Code Generator: For each program that you develop,it is important ( if not vital ) to see logging. In the Roslyn  Analyzer / Code Generators,the diagnostics are logged with DiagnosticDescriptor and Diagnostic – think that you should see in the output console when compiling and this will become clear. More,the enum DiagnosticSeverity Enum…

  • AutoActions for Skinny controllers–deploying at NuGet

    First time I was thinking that is enough to do dotnet pack to make a Nuget package to deploy on NUGET. It was not. I realized that the generator was not starting at all! And it was not in the project Dependencies=>Analyzers . Time to read more from https://github.com/dotnet/roslyn/blob/master/docs/features/source-generators.cookbook.md,I realized that I was wrong –…

  • AutoActions for Skinny controllers–first implementation

    Now with the implementation. First,I find all the fields declarations that had  the  Autonotify  if (syntaxNode is FieldDeclarationSyntax fieldDeclarationSyntax                         && fieldDeclarationSyntax.AttributeLists.Count > 0)             {                 foreach(var al in fieldDeclarationSyntax.AttributeLists)                 {                     var att = al.Attributes;                     foreach(var at in att)                     {                         var x = at.Name as IdentifierNameSyntax;                         if(autoActions.Contains(x.Identifier.Text))                         {                             CandidateFields.Add(fieldDeclarationSyntax);                             return;                         }                     }                 }                              } Second,I must…

  • AutoActions for Skinny controllers–idea

    How you generate actions in controllers ? Usually,you create a Business Logic class and then you expose via a controller in a WebAPI . And,if you are very careful,then you use the Skinny controllers concept  ( read more about it at 3 ways to keep your asp.net mvc controllers thin (jonhilton.net) ). So this implies…

  • Friday Links 401

    dotnet/dotnet-developer-projects.md at master · Microsoft/dotnet Irony – .NET Language Implementation Kit. – Home daveaglick/Scripty: Tools to let you use Roslyn-powered C# scripts for code generation ivaylokenov/AspNet.Mvc.TypedRouting: A collection of extension methods providing strongly typed routing and link generation for ASP.NET Core MVC projects. Eight Tips For Your Programming Team’s Standup Meetings Build and run your…

  • [Video] 5 minutes about Click Once

    Video 5 minutes about Click Once

  • [ADCES] Presentation about .NET 5

    My presentation were about EFCore,RoslynGenerators,Breaking Changes and ClickOnce. Code and presentation at https://ignatandrei.github.io/Presentations/NET5prez.html . Next presentation will be https://www.meetup.com/Bucharest-A-D-C-E-S-Meetup/events/274737653/

I am ok , you are ok