Posts by Lucas Lopes • 337 points
5 posts
-
2
votes2
answers3516
viewsA: How to generate random numbers at command prompt?
With your function that is already generating random numbers, take the result and multiply by a large number, and while this number does not exceed 10 digits, continue multiplying. EX: @echo off…
-
2
votes1
answer3120
viewsA: SQL database structure of a library
Create the table editora then the table autor, when creating the table livro make the relationship between them. EX: create table editora ( id integer(11) primary key NOT NULL, nome varchar(50) NOT…
-
0
votes1
answer260
viewsA: How to assign Combobox value to variable?
Failed to complete the property value tag <option>: <select id="dropdowntipo"> <option value="Exemplo1">Exemplo1</option> <option…
-
1
votes1
answer830
viewsA: POST is not receiving JSON
Receive the object ClassRetorno as a parameter instead of [FromBody]string json, the ModelBindingwill solve the json that is coming.
-
12
votes2
answers2134
viewsA: Which loop is faster for or foreach in C#?
When it comes to performance, the for is faster, but the foreach is more readable. I did tests iterating 10 thousand times and another thousand times with different data types, just to get an idea.…