Posts by Gustavo Motta • 3 points
3 posts
-
0
votes1
answer16
viewsQ: Change 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) {…
-
0
votes0
answers14
viewsQ: Change 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
votes3
answers35
viewsQ: Instance of a certain type cannot be traced because another instance with the same key value for {'ID'} is already being tracked
I am trying to update an entity of mine in the bank but without success, I visualized other posts of the subject, and their solution seems not to be serving for me. I am using Entity Framework Core…