Questions tagged as 'c#'

0
answers

Second thread only when Windows is closed

I have following code private void AbrirConexao(string strConexao) { try { conexao = new NpgsqlConnection(strConexao); conexao.Open(); } catch (Exception) { ReconectarDB(null, strConexao); } } p...
asked by 13.05.2018 / 00:50
1
answer

Error of log.Append

I have an excel spreadsheet with date fields, however, if I do not fill in these fields, I should display a message log for this user, but if I leave it blank, the log is not shown. I put the breakpoint to debug, but when compiling the code i...
asked by 21.05.2018 / 15:55
1
answer

Import XML file data into Array

Good morning, I have the following XML code. <?xml version="1.0" encoding="utf-8"?> <Regras> <Regra Id="1" ExtensaoArquivo=".RET" PastaOrigem="C:\Nova pasta\" PastaDestino="C:\Nova pasta (4)\"> <depara IdRegra="1" Co...
asked by 21.05.2018 / 15:18
1
answer

Collating in LINQ with multiple entity records

I have a LINQ query that retrieves the average of a list of Notes grouped by sources of risk. var mediaControles = await (from ac in _context.AvaliacaoControle join c in _context.Controle on ac.ControleID equals c.ControleID join nc in _con...
asked by 08.05.2018 / 15:12
0
answers

Deserialize Json in C # in records / columns format

Hello to the community, I need to deserialize a Json in a format I do not know :: Home * I use JToken or serialization, but I do not see a solution with these two ... {{ "product": { "columns": [ "product_id", "name" ],...
asked by 07.05.2018 / 21:14
0
answers

Database Modeling Sql Server

Good morning, friends, I have a project that basically has two types of products, simple products such as market items, kg rice, 1 kg beans, etc. and compound items such as basic baskets, made up of simple items, ie inside the basket basic we...
asked by 07.05.2018 / 17:29
0
answers

Best way to perform complex builds

I have an application that dynamically loads dlls and other components at runtime, and I'm looking for a solution to build complex "Apache Ant" builds (available in Java). What options do I have? Any suggestions?     
asked by 11.05.2018 / 14:08
1
answer

Send Json from client application and receive on Server

I'm having a problem sending a json from my client application to my API on the server. The Json is generated correctly, and the POST request is performed, however on the server side the following error is reported: "message": "Ocorreu um err...
asked by 11.05.2018 / 16:19
1
answer

How to change value inside a row gridview C #

I'm working on a POS form and I have the following question. In my example it would be like modifying the quantity of the same product on a single line without having to repeat the product every time it is added to the cart. Follow the ima...
asked by 15.05.2018 / 07:03
0
answers

MVC Upload Image and send the database

Good Night I'm making an online store for a course and would like to know if anyone could help me create image upload to the Database. The purpose is to add in the admin page and appear in the index. Page where the product is created:...
asked by 15.05.2018 / 10:04