Most voted ".net-5" questions
. NET 5 is the next major version of . NET Platform, you will have a Base Class Library with Apis to create any type of application.
Learn more…8 questions
Sort by count of
-
10
votes2
answers289
viewsWhen to use record or class on C#?
One of the novelties of C# 9 are the record types, I saw that one of the biggest differences between them and the classes are the methods .ToString() and .Equals() who has a different behavior. But…
-
7
votes1
answer116
viewsAre the new self-contained . NET executables really native?
In that question here, was discussed about whether there is a need to install . NET 5 (or .NET Core 3) on the machine to run compiled executables, and the answer is: No, the . NET 5 is not…
-
5
votes1
answer122
viewsHow does Windows manage installation frameworks?
Today you were asking me how the management of frameworks on Windows. The new version is coming out .NET 5, that means I will have to install this version to install programs made with this version…
-
0
votes1
answer19
viewsConvert generic to specific type in DB set
I am creating a web api using . net 5 The purpose of the application is to make a simple user registration, and in the future other types of registration I created a generic CRUD interface to be…
-
0
votes1
answer22
viewsThe type of entity requires a primary key to be defined
I am creating a web api using the .net 5 The purpose of the application is to make a simple user registration, and in the future other types of registration I’m using an architecture DDD, and in my…
-
0
votes0
answers14
viewsChange Connection String at runtime - changing each request to the API - EF Core
I need to create something that changes my connection string at runtime... In my WEB API (.net 5) Every request that is made needs to be contained in the Request Header 2 parameters, Authentication…
-
0
votes1
answer16
viewsChange property value depending on your type
In my Rest application I receive values via json that are converted to a class My endpoit [HttpPost] [Route("Pessoa/Adicionar")] public JsonResult AdicionarPessoa([FromBody] PessoaCommand body) {…
-
-1
votes0
answers14
viewsHow to disable the log of certain c# routes using iLogger?
I currently use Microsoft’s own Logger to log the application, as follows: if (environment != null && !environment.IsLocal() && !environment.IsDocker()) { return loggingBuilder…