Posts by Thiago Loureiro • 2,465 points
113 posts
-
1
votes2
answers2531
viewsA: API request mails returning null
Your code is correct. correios.rastro a = new correios.rastro(); correios.sroxml xml = new correios.sroxml(); xml = a.buscaEventos("usuario", "senha", "tipo", "resultado", "lingua", "objetos");…
-
0
votes3
answers1181
viewsA: How to access the elements of a list declared in a different class?
Every time you create a new instance of Listmethod with its list inside you initialize everything from scratch. It depends a lot on the scenario, but if Voce wants to fill a list, and leave it in…
-
2
votes1
answer231
viewsA: Firebase delay in first database search
There is an overload when establishing a connection for the first time. The connection is about a secure websocket, and to ensure that it is safe, there are several round trips between the client…
firebaseanswered Thiago Loureiro 2,465 -
1
votes2
answers974
viewsA: Insert several Items with the same IDPEDIDO Sql Sever
You will have to change the structure of your data. Because now you want to have multiple items with the same number of Orders. So by imagining that your table is of items, you create a new table…
-
5
votes1
answer1032
viewsQ: Dependency Injection in . NET Core
I am migrating a Webapi project with . NET Framework 4.6 to . NET Core. In this my project I use Unity to do Dependency Injection: var container = new UnityContainer(); DependencyResolver = new…
-
2
votes3
answers1813
viewsA: How to map 1:N (one to many) in Dapper?
I just published an article on multi-mapping with Dapper Multi-mapping with Dapper In my example have Github source and everything, but I will explain here too. In the code below I am looking for a…
-
3
votes1
answer48
viewsA: How to create a filter with all products in the second list except with products that returned in the first list
Use the Except, very simple: List<string> segundo = new List<string>(); segundo = listaProduto.Except(primeiro).ToList();
-
2
votes3
answers56
viewsA: Visual Studio Variable View does not work
Upgrade VS and all components, no need to reinstall
-
0
votes1
answer32
viewsA: Googleapi in Visualstudio
Use that Nuget here: Install-Package Google.Maps.Client However the Viewport there is something specific App, I took it from the code.…
-
1
votes2
answers86
viewsA: ORM that can connect with 2 BD types (SQL or HANA)
I have in a Webapi application where SQL and MYSQL support The implementation is very simple: I created an Abstract class with the configuration of the two connections Follows code:…
-
0
votes2
answers2246
viewsA: How to print from a web application to a local printer with C#
I participated in several projects using similar structure, but the printers were on the server side.. Systems where I had an ASP.NET application and this application performed prints on Zebra…
-
8
votes2
answers233
viewsA: When I type broken number, it removes the comma and sums as integer
The source of the problem is your regional Settings (Windows), my computer is regional American, use point in decimals, so your program works using points. You can solve by forcing your application…
-
0
votes1
answer81
viewsQ: EntityFramework DatabaseGenerated
I have a property in my model where automatically generates the Id when it is inserted in Db, but I have a specific case where I need to put the Id manually, there is some way to prevent the EF from…