Category: .NET 7
-
RSCG – CommonCodeGenerator
name CommonCodeGenerator nuget https://www.nuget.org/packages/CommonCodeGenerator/ link https://github.com/usausa/common-code-generator author yamaokunousausa Generating ToString from classes This is how you can use CommonCodeGenerator . 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/CommonCodeGenerator
-
Comparing EFCore Database Providers-part-2
I have started with a simple table – Department( id autogenerated,name) and generate EFCore context and classes with scaffolding templates https://learn.microsoft.com/en-us/ef/core/managing-schemas/scaffolding/templates?tabs=dotnet-core-cli . Then I have created a simple text ( XUnit + LightBDD ) in order to test – generateDatabase from classes – CRUD – some simple search . Works perfectly,so to the next –…
-
Comparing EFCore Database Providers-part-1
I wanted to see if there are any differences in EFCore database providers listed at https://learn.microsoft.com/en-us/ef/core/providers/?tabs=dotnet-core-cli I want to test the capabilities for each one within a standard choice of tables,in order to know the capabilities I choose only those that have a version for current STS / LTS,whatever it is current. ( I am…
-
RSCG – PrimaryParameter
RSCG – PrimaryParameter name PrimaryParameter nuget https://www.nuget.org/packages/FaustVX.PrimaryParameter.SG link https://github.com/FaustVX/PrimaryParameter author FaustVX Generating properties from .NET 8 constructor parameters This is how you can use PrimaryParameter . 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/PrimaryParameter
-
RSCG – jsonConverterSourceGenerator
RSCG – jsonConverterSourceGenerator name jsonConverterSourceGenerator nuget https://www.nuget.org/packages/Aviationexam.GeneratedJsonConverters.SourceGenerator/ link https://github.com/aviationexam/json-converter-source-generator author Aviationexam Json Polymorphic generator This is how you can use jsonConverterSourceGenerator . 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/jsonConverterSourceGenerator
-
Adding more data to a result of a task
Every now and then I need to generate,from an array of data,an array of Tasks and then await Task.WhenAll(TheTaskArray) The problem is that I need to consolidate the return data of each array with the original array – to make some modifications. For example,in the generator of https://ignatandrei.github.io/RSCG_Examples/v2/docs/category/rscg-examples I do something like this My first…
-
RSCG – NetEscapades.EnumGenerators
RSCG – NetEscapades.EnumGenerators name NetEscapades.EnumGenerators nuget https://www.nuget.org/packages/NetEscapades.EnumGenerators/ link https://andrewlock.net/netescapades-enumgenerators-a-source-generator-for-enum-performance/ author Andrew Lock Running fast tostring and other features for enum This is how you can use NetEscapades.EnumGenerators . The code that you start with is The code that you will use is The code that is generated is Code and pdf…
-
RSCG – ApparatusAOT
RSCG – ApparatusAOT name ApparatusAOT nuget https://www.nuget.org/packages/Apparatus.AOT.Reflection/ link https://github.com/byme8/Apparatus.AOT.Reflection author Stanislav Silin This will generate code for investigating at runtime the properties of an object This is how you can use ApparatusAOT . The code that you start with is The code that you will use is The code that is…
-
RSCG – PartiallyApplied
RSCG – PartiallyApplied name PartiallyApplied nuget https://www.nuget.org/packages/PartiallyApplied/ link https://github.com/JasonBock/PartiallyApplied/blob/main/docs/Quickstart.md author Jason Bock If you need to curry functions,you can use this package This is how you can use PartiallyApplied . The code that you start with is The code that you will use is The code that is generated is Code…
-
RSCG – RazorBlade
RSCG – RazorBlade name RazorBlade nuget https://www.nuget.org/packages/RazorBlade/ link https://github.com/ltrzesniewski/RazorBlade author Lucas Trzesniewski Fast templating with Razor syntax Do not forget to put into AdditionalFiles section of csproj file This is how you can use RazorBlade . The code that you start with is The code that you will use is The…