Posts by Leonardo Bressan • 170 points
9 posts
-
0
votes1
answer480
viewsQ: Asp.Net Core Webapi Returning Object List
I am trying to return a list of a "Plan" Template that has a list of "Expenses", returning only the plan list works, but when added to return the spending list of a javascript error. "Failed to load…
-
3
votes4
answers1437
viewsQ: Get user logged in to Asp.Net Core 2.0
How do I get the User who is logged in to the class ? I’m trying this way: public class Teste { private readonly UserManager<Usuario> _userManager; public Teste(UserManager<Usuario>…
-
0
votes2
answers53
viewsA: Send Post with Template data that attributes are classes
I found the problem, where I was using Asp-for for fields that are models, I was only putting the name of the model and not the field, I just changed from Client , Vehicle and User to Client.Id,…
-
0
votes2
answers53
viewsQ: Send Post with Template data that attributes are classes
I’m trying to send a Post through a form, but in the controller the attributes that are classes are arriving as null, as I should do so I can get the data right so I can register in the database?…
-
3
votes1
answer74
viewsA: If only returns the first result
Has to be == instead of just =
-
4
votes2
answers137
viewsA: Find 2 occurrences in powershell
You can do it like this get-content C:\log.txt | Select-String -Pattern "string1" | Select-String -Pattern "string2" I don’t know if there’s a better way
powershellanswered Leonardo Bressan 170 -
3
votes1
answer1635
viewsQ: Compressing Files in Powershell
How can I create a Powershell script to compress files from a specific folder?
powershellasked Leonardo Bressan 170 -
0
votes1
answer97
viewsA: Error saving form data to DB with c#
From what I saw SQL Code has an extra "," and quotes in int fields, try changing the SQL code for this one, if it doesn’t work yet, see if all the fields that are quoted are actually string. "UPDATE…
-
2
votes2
answers49
viewsA: Datapicker Mysql
var cmd = new Mysqlcommand("SELECT distinct id, Car, Plate, Manufacturer, Year, Color, Date FROM New WHERE Data = '"+ Datepicker+"'", _Connection); instead of WHERE is WHARE, make sure that’s not it…