Posts by Guilherme Camarotto • 153 points
14 posts
-
1
votes1
answer141
viewsQ: How to make a Soap call on . Net Core
I am trying to consume an external service that receives an xml Soap, but always returns error 500 (Internal server error). But if I test via SOAPUI works normally. I have tested several types of…
-
3
votes1
answer137
viewsQ: Entity Framework returns any type of data with Sqlquery
I’m trying to return dynamic values of a query also dynamic, but I can’t figure out how to get any kind of data from the database. Here’s what I’m trying to do comandoSql = @" SELECT " + NomeCampo +…
-
0
votes1
answer91
viewsA: How to call a javascript function after a webforms download
I managed to solve it by creating a Generic Handler with the download code. On my page I call a js function that passes the url of this . ashx for an invisible iframe, this . ashx downloads and then…
-
0
votes1
answer91
viewsQ: How to call a javascript function after a webforms download
I have an aspx page with a grid and a linkbutton. When clicking on this linkbutton I call a function that hangs the screen and places a loading while downloading a file on the server, after the…
-
1
votes2
answers1043
viewsQ: How to use token authentication with Webapi . Net
I’m looking at some sites about token-based authentication using the Oauth library but a question has arisen. I have a webapi that already exposes services to both an App and a Site. We already have…
-
0
votes1
answer406
viewsQ: How to pass the Model to the controller via Jquery
It is possible to pass the filled Model to the controller via jquery, without having to create a variable and populate it with all fields? Example: I have a modal popup that opens a partialview with…
-
0
votes2
answers1164
viewsA: How popular a select with Jquery
I managed to just remove the "obj" and leaving only "date". I leave the solution to the next people. $.ajax({ type: "get", url: "/Prestador/GetAllTipoAcessoTelefone", data: { tipos:…
-
3
votes2
answers1164
viewsQ: How popular a select with Jquery
I have a registration screen where the user can add or not phone numbers. I am adding fields for entering the phone dynamically, but one of these fields is a select that will bring data from the…
-
1
votes2
answers263
viewsQ: How to enter data with JSON and MVC5
I have a registration screen, where the user can insert as many emails as he wants in each record. For this, in my View I have the following code <div class="form-group"> <button…
-
0
votes2
answers176
viewsQ: How to create a View to insert multiple entities
I have an entity that has daughter entities, such as: - Supplier (has main supplier data) - Suppliers - Supplier of telephones - Suppliers - etc.... Where each entity is a database table related to…
-
1
votes0
answers130
viewsQ: Bulk insert with Entity Framework 6
I have a project where the user selects a txt or csv file, and the system reads line by line passing the fields to an entity. The first time, he executed SaveChanges() from the bank context to each…
entity-framework-6asked Guilherme Camarotto 153 -
1
votes0
answers274
viewsQ: How to import database tables to code with Entity Framework 6
In my project, I have only a few entities that are not connected to the database, but I run some procedures through EF6. These procs are only queries that bring data across information from more…
-
1
votes0
answers462
viewsQ: How can I use two models in the same view?
I have a View that has a dropdownlist and a text box. This dropdownlist is returning your items from a model. After filling these two objects, I make a request that will bring some results that I…
-
2
votes1
answer293
viewsQ: How to map the results of a previous store to an entity using Entity Framework?
Personal talk. I’m doing a project with MVC 4 and EF6. I’d like to call in a proc and her results populate an entity. But my entity is not a bank table, so I did not use Dbset on it. What happens is…