Posts by iago soares • 92 points
12 posts
-
0
votes2
answers72
viewsQ: Problem using push in JS array
I am entering some dates formatted in a array. When I select per day, the format needs to be "DD/MM", but I get from API "MM/DD", in this case I do the inversion after the push in the array, due to…
-
0
votes0
answers124
viewsQ: How to set up Hangfire authentication in Production
I’m using Hangfire to manage background tasks, it works normally when I’m on localhost, but in the production environment I’m not being able to set up the authentication needed to open Dashboard I…
-
2
votes1
answer29
viewsA: Problem with MYSQL data formatting
Try adding an alias, ex: DATE_FORMAT(dt_input, '%d/%m/%Y') as dt_input
-
0
votes0
answers212
viewsQ: Hide the first button, dynamically VUE JS
I am trying to make the first generated button not appear, only from the second to the next. Is there any way to do this? follows the Techo of the code: HTML <card class="col-md-5">…
-
1
votes1
answer167
viewsA: How to group records by month and year within a list of objects? ASP NET CORE
//agrupando registros por ano var lista = objReturn.register.GroupBy(d => d.pass_date_time.ToString("yyyy")) .Select(x => new { Year = x.Key, Sum = x.Sum(item => item.qty_pass)…
-
0
votes1
answer167
viewsQ: How to group records by month and year within a list of objects? ASP NET CORE
I am trying to group the objects of a list by month or year, before returning the same. I am trying this way and I did not succeed. foreach (var item in passList) { pass_obj = new Pass_returnDTO();…
-
0
votes1
answer372
viewsA: User.Identity.Isauthenticated always returns false
Solved, I was marking as true, being that I am not using these checks. ValidateIssuer = true, ValidateAudience = true Just mark to false ValidateIssuer = false, ValidateAudience = false…
-
-1
votes1
answer372
viewsQ: User.Identity.Isauthenticated always returns false
I am implementing stunning and authentication with Identity using the concept of Claims, after I login, I am not able to save the authorization, the login returns 200 ok, but is not authorized…
-
0
votes0
answers262
viewsQ: EF Core - "A command is already in Progress"
I am requesting a Function in the database where it returns the values to be saved, but before saving I need to make a check if there is no same data, when I do this check with EF core it returns me…
-
0
votes0
answers98
viewsQ: How to RETURN an UPDATE from SELECT in Postgree within a Function?
I have a "FUNCTION RETURNS TABLE()" in Postgree, where I select from select, but I need to apply an update from select, but I cannot return to the table. I tried it this way and I didn’t succeed:…
-
1
votes2
answers151
viewsA: How to create Function in Database with Migrations Ef core?
Another option found public class ApplicationDbContext : DbContext { protected override void OnModelCreating(ModelBuilder modelBuilder) { Database.ExecuteSqlCommand("sql script vai aqui"); } }…
-
1
votes2
answers151
viewsQ: How to create Function in Database with Migrations Ef core?
I created a Function in Postgresql and would like it to be generated together with the database in the initial Migration. I tried it this way and I didn’t get any results protected override void…