Posts by Ricardo Carvalho • 455 points
15 posts
-
3
votes1
answer384
viewsQ: Asparallel(). Forall vs async await
When to use AsParallel().ForAll, and when to use async await? I am providing an example with a download and file manipulation routine. The AsParallel().ForAll has better performance in the download…
-
3
votes1
answer1253
viewsQ: Upload with ASP.NET Core json vs formdata
I’m using Asp.net core webapi, initially my actions were using the attribute [Frombody] in the parameters, so I rescued the json value sent by front-end. I am now implementing a screen that has…
-
1
votes0
answers76
viewsQ: Webapi (.NET Core) has no performance gain when using async
I’m implementing an asynchronous api, but I haven’t seen much performance gain. I used Restful Stress for Chrome to do my tests, I simply didn’t see performance gain when using async. I thought this…
-
5
votes1
answer257
viewsQ: Entity Framework Async Performance
I am implementing an asynchronous webapi, and have tested two ways to return the value with EF6. The 1st form was using Tolistasync(), and the 2nd form was using Task. The 2nd form has a much better…
-
1
votes0
answers200
viewsQ: Ag-grid with Angular2 using angular-cli
I am trying to run ag-grid with angular2, the examples you have on the ag-grid website are using Systemjs as Builder, and the new angular-cli uses webpack. Below I’ll put the way I managed to run,…
-
2
votes1
answer58
viewsQ: Ui-router for systems with many modules
I came across a problem I have a Controller called Ordercontroller which is in two modules, Sales and Supply. When I route to the screen that will use this controller how can I define which of the…
-
3
votes1
answer264
viewsQ: Best way to inherit a controller and override a Gularjs 1.5.x routine
Below is my code that implements inheritance using $controller. Is this way good? My goal is to reuse a baseController class that will have some common routines for crud controllers. Fiddle:…
angularjsasked Ricardo Carvalho 455 -
1
votes2
answers385
viewsA: Webapi - Tryupdatemodel or Updatemodel in an Apicontroller
Sharing knowledge with anyone who has the same problem. Recalling that the purpose of this function is not to validate the entity and just fill (complement) an entity coming from the database with…
-
1
votes2
answers385
viewsQ: Webapi - Tryupdatemodel or Updatemodel in an Apicontroller
I have the following situation, a Person class, with properties Id, Name, Birth, I want to implement a page that can update only the Person Name. My implementation should take a person by their id,…
-
2
votes2
answers276
viewsA: Prevent form Ubmit, but allow other actions by typing enter in an input
Utilize setTimeout to solve. Problem: You’re using the right event to capture the key (keydown), the problem is in the Alert, When it is fired, your control loses focus, and at this point you have…
-
2
votes1
answer598
viewsA: Mask - Javascript Mascara
I wrote something below that will help you, but I think I better use some library for Mask, in jquery, angular, js pure. Below follows the built-in code and plunker: Mask code no plunker…
-
0
votes1
answer88
viewsA: Problem with json in Angularjs
Your return is being an array of Htmls, so the comma, try to make a return with a single HTML, that is, your return should be a string. I don’t know how to concatenate string in php but your return…
-
2
votes2
answers571
viewsA: Pass generic model to controller
Well, from what I understand you want to make your Generic controller and have a Generic action, but the view will continue to be specialized. Below is a very direct suggestion to your point, but…
asp.net-mvcanswered Ricardo Carvalho 455 -
2
votes1
answer391
viewsA: Jquery + Angular form do not pass an input value
Use the angular itself to define the value of the id_vehicle field. //recupera o scopo do angular var scope = angular.element('[ng-controller=FormController]').scope(); //define o valor scope.test2…
-
1
votes2
answers4104
viewsA: How do I access and manipulate a web page in the same way that the user would access a web page?
If it’s not a problem for your application to open a browser, you can use Selenium. I changed your example web code a little bit: <!DOCTYPE html> <html> <body> <h1> Titulo…