Category: roslyn

  • RSCG_DBContext–execution – part 2 of 3

    Some problems that should be solved: 1 How to know that the user opted for this generation ? Of course , with an attribute – I named mine GenerateDbContextExistsAttribute ( consequence: The problem of multiple assemblies sharing same attribute is solved –  see Andrew Lock https://andrewlock.net/exploring-dotnet-10-preview-features-4-solving-the-source-generator-marker-attribute-problem-in-dotnet-10/ ) 2. The generation of function : the function…

  • RSCG_DbContext- idea –part 1 of 3

    The  DBContext from Entity Framework has a method on Database property , named :EnsureCreated ( and one EnsureCreatedAsync) The problem with that is that verifies JUST the name of the database – not the tables exposed in the DBSet . So how  to do this kind of stuff – verify that the tables for a…

  • RSCG – AOP.Logging.SourceGenerator

    RSCG – AOP.Logging.SourceGenerator     name AOP.Logging.SourceGenerator nuget https://www.nuget.org/packages/AOP.Logging.SourceGenerator/ link https://github.com/dborgards/aop.logging.net author Dietmar Borgards Logging methods by generating new ones   This is how you can use AOP.Logging.SourceGenerator . The code that you start with is The code that you will use is   The code that is generated is Code and pdf at https://ignatandrei.github.io/RSCG_Examples/v2/docs/AOP.Logging.SourceGenerator

  • RSCG – Najlot.Map.SourceGenerator

    RSCG – Najlot.Map.SourceGenerator     name Najlot.Map.SourceGenerator nuget https://www.nuget.org/packages/Najlot.Map.SourceGenerator/ link https://github.com/najlot/Map author Najlot Generates object mapping code at compile time using source generators   This is how you can use Najlot.Map.SourceGenerator . The code that you start with is The code that you will use is   The code that is generated is Code and…

  • RSCG – SatorImaging.TDoubles

    RSCG – SatorImaging.TDoubles     name SatorImaging.TDoubles nuget https://www.nuget.org/packages/SatorImaging.TDoubles/ link https://github.com/sator-imaging/TDoubles author Sator Imaging Generating test stubs with mocking for interfaces   This is how you can use SatorImaging.TDoubles . The code that you start with is The code that you will use is   The code that is generated is Code and pdf at…

  • RSCG – PropertyResolvers

    RSCG – PropertyResolvers     name PropertyResolvers nuget https://www.nuget.org/packages/PropertyResolvers/ link https://github.com/tombiddulph/PropertyResolvers author Tom Biddulph Generating code for switch for property in C#   This is how you can use PropertyResolvers . The code that you start with is The code that you will use is   The code that is generated is Code and pdf…

  • RSCG – Pinecone.TypedPath

    RSCG – Pinecone.TypedPath     name Pinecone.TypedPath nuget https://www.nuget.org/packages/Pinecone.TypedPath/ link https://github.com/nickpinecone/typed-path author Nick Pinecone Generating typed paths for file system navigation and manipulation.   This is how you can use Pinecone.TypedPath . The code that you start with is The code that you will use is   The code that is generated is Code and…

  • RSCG – IncrementalSourceGenerator.BuilderPattern

        name IncrementalSourceGenerator.BuilderPattern nuget https://www.nuget.org/packages/IncrementalSourceGenerator.BuilderPattern/ link https://github.com/MartinBarrettNielsen11/Incremental-source-generator-builder-pattern author Martin Barrett Nielsen Generate builder pattern code for classes with many properties   This is how you can use IncrementalSourceGenerator.BuilderPattern . The code that you start with is The code that you will use is   The code that is generated is Code and pdf at…

  • RSCG – Clap.Net

        name Clap.Net nuget https://www.nuget.org/packages/Clap.Net/ link https://github.com/simon-curtis/Clap.Net author Simon Curtis Command line arguments parsing   This is how you can use Clap.Net . The code that you start with is The code that you will use is   The code that is generated is Code and pdf at https://ignatandrei.github.io/RSCG_Examples/v2/docs/Clap.Net

  • RSCG – EndpointHelpers

        name EndpointHelpers nuget https://www.nuget.org/packages/EndpointHelpers/ link https://github.com/gumbarros/EndpointHelpers author Gustavo Mauricio de Barros Generating endpoint helpers for ASP.NET Core MVC   This is how you can use EndpointHelpers . The code that you start with is The code that you will use is   The code that is generated is Code and pdf at https://ignatandrei.github.io/RSCG_Examples/v2/docs/EndpointHelpers