Category: roslyn

  • RSCG- part 15 – Expression Generator

        name Property Expression Generator nuget https://www.nuget.org/packages/AOPMethodsCommon/ https://www.nuget.org/packages/AOPMethodsGenerator/ link http://msprogrammer.serviciipeweb.ro/category/roslyn/ author Andrei Ignat This will generate code to add function to be used with Entity Framework to search for any property of a class   The code that you start with is The code that you will use is   The code that is…

  • RSCG- part 14 – DP_Decorator

        name AutoInterface nuget https://www.nuget.org/packages/BeaKona.AutoInterfaceGenerator link https://github.com/beakona/AutoInterface author beakona Implement the Design Pattern Decorator. Based on template – you can modify the source code generated   The code that you start with is The code that you will use is   The code that is generated is Example Code: https://github.com/ignatandrei/RSCG_Examples/tree/main/DP_Decorator

  • RSCG- part 13 – IFormattable

        name IFormattable nuget https://www.nuget.org/packages/AOPMethodsCommon/ https://www.nuget.org/packages/AOPMethodsGenerator/ link http://msprogrammer.serviciipeweb.ro/category/roslyn/ author Andrei Ignat This will generate code to add IFormattable to any class,based on the properties of the class   The code that you start with is The code that you will use is   The code that is generated is Example Code: https://github.com/ignatandrei/RSCG_Examples/tree/main/IFormattable

  • RSCG – Curry – Partial function – part 12

        name PartiallyApplied nuget https://www.nuget.org/packages/PartiallyApplied/ link https://github.com/JasonBock/PartiallyApplied author Andrei Ignat This will generate curry for your functions   The code that you start with is The code that you will use is   The code that is generated is Example Code: https://github.com/ignatandrei/RSCG_Examples/tree/main/PartiallyFunction

  • RSCG- Method Decorator – part 11

        name Method decorator nuget https://www.nuget.org/packages/AOPMethodsCommon/ https://www.nuget.org/packages/AOPMethodsGenerator/ link http://msprogrammer.serviciipeweb.ro/category/roslyn/ author Andrei Ignat This will generate code to decorate methods with anything you want ( stopwatch,logging,authorization…)   The code that you start with is The code that you will use is   The code that is generated is Example Code: https://github.com/ignatandrei/RSCG_Examples/tree/main/MethodDecorator

  • RSGC- Dynamic Mock – part 10

        name MockSourceGenerator nuget https://www.nuget.org/packages/MockSourceGenerator/ link https://github.com/hermanussen/MockSourceGenerator/ author Robin Hermanussen This will generate Mock classes directly for any interface – with your implementation.   The code that you start with is The code that you will use is   The code that is generated is Example Code: https://github.com/ignatandrei/RSCG_Examples/tree/main/DynamicMocking

  • RSGC- MetadataFromObject – part 9

        name Metadata from object nuget https://www.nuget.org/packages/AOPMethodsCommon/ https://www.nuget.org/packages/AOPMethodsGenerator/ link http://msprogrammer.serviciipeweb.ro/category/roslyn/ author Andrei Ignat This will generate code to retrieve the values of properties directly,not by reflection   The code that you start with is The code that you will use is   The code that is generated is Example Code: https://github.com/ignatandrei/RSCG_Examples/tree/main/MetadataFromObject

  • RSGC-Builder Design Pattern – part 8

        name data-builder-generator nuget https://www.nuget.org/packages/DasMulli.DataBuilderGenerator/ link https://github.com/dasMulli/data-builder-generator author Martin Andreas Ulrich Implements the Builder Design pattern for any class. Useful,at least,for test projects   The code that you start with is The code that you will use is   The code that is generated is Example Code: https://github.com/ignatandrei/RSCG_Examples/tree/main/DP_Builder

  • RSGC – Skinny Controllers- part 7

        name Skinny Controllers nuget https://www.nuget.org/packages/SkinnyControllersCommon/ https://www.nuget.org/packages/SkinnyControllersGenerator/ link http://msprogrammer.serviciipeweb.ro/category/roslyn/ author Andrei Ignat This will generate code for WebAPI for each method of a field in the controller   The code that you start with is The code that you will use is   The code that is generated is Example Code: https://github.com/ignatandrei/RSCG_Examples/tree/main/SkinnyControllers

  • RSGC – DTO Mapper – part 6

        name GeneratedMapper nuget https://www.nuget.org/packages/GeneratedMapper/ link https://github.com/ThomasBleijendaal/GeneratedMapper author Thomas Bleijendaal AutoMapping from a POCO to a DTO. Lots of customizations   The code that you start with is The code that you will use is   The code that is generated is Example Code: https://github.com/ignatandrei/RSCG_Examples/tree/main/DTOMapper