Posts by Thiago Oliveira • 147 points
15 posts
-
2
votes0
answers77
viewsQ: Problem running a function in Asp.net.core.webapi + postgresql + npgsql+Dapper
I have a Webapi in Asp.net core, using postgresql as a database. Inside postgresql, I have the following function: CREATE OR REPLACE FUNCTION evento_distancia( IN lat numeric, IN lng numeric, IN…
-
1
votes2
answers61
viewsQ: Variable keeps zeroed in a mathematical expression
My little show is like this: public void CalculaProporção() { decimal contagemSubida = 0 , contagemDescida = 0; int cSubida = 6, cDescida = 4, range = 10; contagemSubida +=…
-
3
votes2
answers44
viewsA: Doubt in Postgresql function
I managed to complete the function, follows below as the sketch of the code: CREATE OR REPLACE FUNCTION verificarDb (tb varchar)RETURNS BOOLEAN as $$ DECLARE result boolean; BEGIN execute format…
-
2
votes2
answers44
viewsQ: Doubt in Postgresql function
I am doing a function in Postgresql and I want to use it to check if a table already exists or not in a database and, if not, I want to create a table. The problem is in the function declaration,…
-
0
votes0
answers263
viewsQ: Doubt in html. Viewbag-powered dropdownlist
I’m having the following problem: I need to send instead of the Id of ViewBag, the Municipio, which is contained in ViewBag.Cidades. How Do I Switch from Id to Municipio when I click Search to send…
-
0
votes1
answer881
viewsQ: How to assign the value of a Tempdata["Test"] or Viewbag.Id to an html input?
I wanted to know how to take the value of my variable tempData and put in an html input, in value maybe... someone could help me? Code below: <div class="container-fluid"> <form…
-
0
votes1
answer58
viewsQ: How do I mount a List or Ienumerable array in the Controller and move to View?
Good evening! I made a request to my webapi to search for data to use=it in a DropDownlist @Html.DropDownList("Id","Descricao"). In My controller, I can pull Webapi results in collection, I treated…
-
0
votes1
answer380
viewsQ: How do I hide or clear the url when I get Asp.net mvc?
I wanted to know how to clean or hide data that I pass through a URL to a webapi so that the data n become apparent and do not disturb my routes.. following example:…
-
1
votes0
answers22
viewsQ: Client question for a webapi
I have a slight doubt... concludes a webapi in Asp.net core, it is all tested and everything , however, I came up with a question... It includes a new project next to this api, so it is the client…
-
1
votes1
answer86
viewsQ: Error sending a route to the same api/Controller/Action in a Webapi
I’m having the following error, I perform the following operation: // POST: api/Funcionario/AddFuncionario [HttpPost("AddFuncionario")] public IActionResult AddFuncionario([FromBody] Funcionario…
-
1
votes0
answers81
viewsQ: Problem when climbing Web Api in Asp.net core using Entity framework with postgresql
Hello! So, I already checked my classes in the bank, I successfully mirrored and started to assemble the functionalities of my webservice. With that, I came across the following mistake:…
-
0
votes1
answer29
viewsQ: Can I set up an upload page, which can receive photos, video and zip packages containing photos and/or videos?
I am like an application where the registered user has a page of uploads of images and videos and I wanted to know if there is how, in addition to receiving photos and videos by uploads, if I can…
-
1
votes1
answer167
viewsQ: Error Running a query with npgsql + Dapper in postgresql
I can capture my "user" object that has inside of itself a "Login and a Password" and, when executing the function by my ORM, I catch the following error message: {"42883: operator does not exist:…
-
1
votes1
answer187
viewsQ: Problem running method to insert new User using ASP.NET MVC with HTML and RAZOR
I have a problem running a request to enter a new user, I do not know what I need to do now to finalize my request, By clicking the sign up button nothing happens below are my HTML code and the…
-
-3
votes1
answer426
viewsQ: Take input values in html for object in ASP.NET MVC
I wanted to know how to get the information of the data entered in the html input to create an object by my MVC model and save it in the database. Note: I already have all model classes, interface…