Posts by Felipe Donda • 267 points
9 posts
-
0
votes1
answer134
viewsQ: Foreach on Razor with Many to Many Relationship Model in Entity Framework Core
I have a table of funcionário and a table of projeto related to many to many as shows diagram below: At the controller FuncionariosController in the method Detalhes i want to list the list of…
-
0
votes1
answer134
viewsA: Foreach on Razor with Many to Many Relationship Model in Entity Framework Core
The exception System.NullReferenceException: Object reference not set to an instance of an object. usually due to the attempt to access an empty object using Razor. In this case the variable…
-
0
votes2
answers37
viewsA: Inclusion of method in own class
Carlos, register Customer($Client) within the admins class makes sense imagining that it is a page or action of the Admins controller. It would also be an organization more linked to diagrama de…
oopanswered Felipe Donda 267 -
2
votes2
answers422
viewsA: Application server
Adriano, as only 3 users will use the application, a 4gb RAM machine, 7200rpm disk and 2 x64 colors more 2GHz dedicated just for this can give the message yes. According to this guide about SQL…
-
3
votes1
answer3287
viewsA: Angularjs and Java backend
That one guide is very simple and explanatory to show the Spring MVC with Angularjs, but it does not have the connection to the bank. That one guide has connection to the bank, but is a little less…
-
0
votes4
answers1430
viewsA: Check if object already exists in the array by id
A simple way with few changes would be to create a new function to check if the array already has the value and call it in a condition before adding: function contains(array,value) { var doescontain…
javascriptanswered Felipe Donda 267 -
1
votes4
answers1430
viewsA: Check if object already exists in the array by id
Luiz, I suggest using the method contains array to check if the object already exists in the array before giving the push: $scope.contratos = []; $scope.Pesquisar = function(){…
javascriptanswered Felipe Donda 267 -
2
votes2
answers6086
viewsA: How to verify that the framework is installed in the correct version?
Felipe, the version of . Net is registered in a registration key. From . Net 4.5 is registered in the key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full in the Shadow release.…
-
4
votes2
answers116
viewsA: Add number in each row in c#
Here’s what I’d do: If you are sure that the pattern always includes "N" at the beginning: string aux = linha.split(' ')[0]; string numeracao = aux.substring(1); In case you wanted a whole: string…
c#answered Felipe Donda 267