Category: .NET 7
-
RSCG – Vogen
RSCG – Vogen name Vogen nuget https://www.nuget.org/packages/Vogen/ link https://dunnhq.com/posts/2021/primitive-obsession/ author Steve Dunn Transform values( e.g. int) into classes If you know what are ValueObject,that is one solution This is how you can use Vogen . The code that you start with is The code that you will use is The code…
-
RSCG – dunet
RSCG – dunet name dunet nuget https://www.nuget.org/packages/dunet/ link https://github.com/domn1995/dunet author Domn Werner Add union types to C# – similar with F#/TS discriminated unions Check his examples- awesome This is how you can use dunet . The code that you start with is The code that you will use is The code…
-
RSCG – AutoCtor
RSCG – AutoCtor name AutoCtor nuget https://www.nuget.org/packages/AutoCtor/ link author Cameron MacFarland Generate constructor from non-initialized fields This is how you can use AutoCtor . 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/AutoCtor
-
RSCG – QuickConstructor
RSCG – QuickConstructor name QuickConstructor nuget https://www.nuget.org/packages/QuickConstructor link https://github.com/flavien/QuickConstructor author Flavien Charlon Fast add constructors that are read only FIELDS Has multiple other features This is how you can use QuickConstructor . The code that you start with is The code that you will use is The code that is generated…
-
RSCG – System.Runtime.InteropServices
RSCG – System.Runtime.InteropServices name System.Runtime.InteropServices nuget https://www.nuget.org/packages/System.Runtime.InteropServices/ link https://learn.microsoft.com/en-us/dotnet/standard/native-interop/pinvoke-source-generation author Microsoft Generate PInvoke calls This is how you can use System.Runtime.InteropServices . 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/System.Runtime.InteropServices
-
Db2Code–part 2- architecture
What we will build you can see here : Each class will have it is own CodeTemplates\EFCore templates from which will generate the code. Let’s start with ExampleModels : Here will be the class definitions . From the table defintion,the DB2Code will generate 1. A definition of a interface with table columns as properties 2. A…
-
.NET 7 Latest features
.NET 7 is a version of the .NET platform that was released on November 10,2021. It is a major release that includes many new features and improvements. Some of the notable features of .NET 7 include: Improved performance: .NET 7 includes many improvements that result in faster startup time and better overall performance. Enhanced support…
-
[ADCES] .NET Conf 2022
Thank you for coming to my presentation at ADCES for .NET Core 7 What’s new . You can find the presentation (and the code ) at https://ignatandrei.github.io/Presentations/WhatsNewNet7prez.html#1 . However,take note that ,after you read the presentation,those are (some of) the links to be consulted / learned : https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotnet-7 https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-11 https://learn.microsoft.com/en-us/aspnet/core/client-side/dotnet-interop?view=aspnetcore-7.0 https://learn.microsoft.com/en-us/aspnet/core/release-notes/aspnetcore-7.0?view=aspnetcore-7.0 https://learn.microsoft.com/en-us/ef/core/what-is-new/ef-core-7.0/whatsnew https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/tutorials/static-virtual-interface-members https://learn.microsoft.com/en-us/dotnet/standard/native-interop/pinvoke-source-generation?source=recommendations
-
Rate Limiter–CORS limited
The problem is that,for the site ( Angular,React,plain HTML ) deployed into wwwroot of .NET Core,I want to have unlimited requests. Also,if I made requests to localhost ( when I try from local),I want also unlimited requests. However,if other site make requests to my AP( CORS enabled ) I,should have limited requests . There is…
-
NetCoreUsefullEndpoints–part 6–passing to .NET 7
So .NET 7 has appeared and I decided to pass NetCoreUsefullEndpoints to .NET 7 . Also,for RateLimiter,I have considered that is good to know if the request is local or remote … so I decided to add connection ( remote IP,local IP,and more details) to the nuget package. So I have created for .NET 6…