Questions tagged as 'c#'

1
answer

Problems restoring a database in PostgreSQL with C #

private void btnRestore_Click(object sender, EventArgs e) { if (clsB.ConectaBanco()) { //Executo a seguinte função para limpar a base de dados, para poder dar o restore. clsB.ExecutarSQL("drop schema public cascade; create...
asked by 14.09.2017 / 19:44
0
answers

Querying using the Entity Framework

I'm a beginner in the Entity Framework and soon got a maintenance software that uses Entity. I need to create a report and do the following SQL query using Entity: select p.RA, p.Nome, p.Modulo, a.Descricao from inscricao as i, Participant...
asked by 14.09.2017 / 15:36
1
answer

Error CS0118 on Unity "player is a namespace but a type has expected

Who can help me, I need so much. It's a project for a game on Unity 2d: using System.Collections; using System.Collections.Generic; using UnityEngine; //using player ; //using Monobehaviour; namespace player { } namespace teste { abstract cl...
asked by 14.09.2017 / 23:56
0
answers

Route is not being located on my site, but works on localhost

I have a service, with GET and PUT verbs. In localhost is ok, but when I host on my site I get this error, only when I call PUT :    IIS 7.5 Detailed Error - 404.6 - Not Found According to the provider's faces, this may be the route...
asked by 18.09.2017 / 13:59
2
answers

Doubt REST - POST

I would like to know if it is possible after the resolution of the promise of a POST if I can get the result and transform into an array Ex: axios.post(http://localhost:5000/api/horario/,{ Nome: nome, Horario: horario })...
asked by 13.09.2017 / 16:16
2
answers

Error deleting directory (file being used)

I am compacting a folder and then deleting the folder that already existed. The problem is that in some situations, I fall into an exception stating that a file in the folder is still being used: ZipFile.CreateFromDirectory(sDiretorioZip, stri...
asked by 13.09.2017 / 00:40
0
answers

How to receive via Hexadecimal serial information in C #

I'm starting an application that gets via the data from an interface in Hexadecimal, but when the data arrives, they are not shown in a Hexa format, it seems to me that they are being converted to ASCII. For example: the data is sent in the form...
asked by 13.09.2017 / 12:16
2
answers

Grouping query by date

I am developing a query with C #, but I have a problem to accomplish the same. I need to group by date. Code: public void BuscarVendaDeProdurtos_Saidas() { var data1 = Convert.ToDateTime(dateINI_Saida.Text); var data2 = Convert.ToDa...
asked by 24.10.2017 / 12:21
1
answer

Output from my service does not match my password

In the output of my service, for the DataItems field, I have this: <DadosItens> Qtde 3 Custo 46,66Unitario 68,58 Margem 0Ult.Cond 30/01/2017 C. Diario 46,66 Total 205,73 </DadosItens> It turns out that I do not have any Label Qt...
asked by 13.09.2017 / 12:39
2
answers

How to load values in the combobox by the load event of form C #

I'm trying through this code: private void frmAdicionarProdutos_Load(object sender, EventArgs e) { string serverName = "localhost"; string port = "5432"; string userName = "postgres";...
asked by 23.10.2017 / 20:40