Questions tagged as 'c#'

4
answers

Reflection of an Object that is owned by another

In my code I use a class called GenericField<T> which is used on all attributes of another class named Aplicacao . All the same, however, in another part of the code I need to get via reflection the name of a specific attrib...
asked by 07.07.2015 / 22:08
2
answers

C # MVC5 - Insert Fields with 4 Decimal Digits

I'm doing an insert into the database (SQL Server 2008) of a field set to 'decimal (10,4)', of which I try to insert / edit, through my C # application MVC5, a field of my model type 'decimal'. The fact is that when I debug the code, even bef...
asked by 09.07.2015 / 22:08
1
answer

OnDisconnected event in SignaIR does not work right

Well, I've developed a chat according with this link and everything worked fine. But the disconnected event does not work right. What happens is that, according to the referral link, this event is triggered when the user closes the page, th...
asked by 28.10.2014 / 14:49
1
answer

Auditing with Entity Framework

I want to do the audit tables for my entities. At first I thought about overwriting the SaveChanges method. I also thought about writing a method that will be doing the audit on my% base%. Using both ways, I will have a single auditing ta...
asked by 13.10.2014 / 18:22
2
answers

Error reading page html with Html Agility Pack

I'm reading an HTML page using the Html Agility Pack . I run the code on the notebook and it works perfectly. The problem is when I run the same on Windows Phone 7.1. Accent characters (ç) are encoded. And the strangest thing is that the sam...
asked by 14.11.2014 / 22:54
1
answer

Wrong message in webservice integrating with ActionScript

I'm doing a restful application in C #, in which I will receive a request via post and will return a JSON or a string for the requester. [HttpPost] public string confirmahora() { String OUTPUT = "mensagem";...
asked by 18.11.2014 / 13:39
1
answer

How to show a notification on the screen without affecting the active application [closed]

How do I show a notification without affecting the active application? In short, I want the notification to be displayed on the screen and the active application does not lose focus, or if it is a full screen application, I want it to not be min...
asked by 27.11.2014 / 16:38
1
answer

How to improve the performance of a foreach

I'm consuming a webservice , which has at least 5557 records. The problem is after consuming. I have to add the records in my database, and for that, I have to make a foreach , which ends up hindering the performance a litt...
asked by 22.12.2014 / 17:09
2
answers

How to concatenate strings in a Linq query

How do I concatenate the column Sistemas , leaving Sistema, Sistemas 2 ? I have this query Linq : var fiscalizacoesBaixadas = (from tb_fiscalizacoes_campo in _context.TB_FISCALIZACOES_CAMPO join tb_fiscalizaco...
asked by 20.12.2014 / 18:08
2
answers

How to pass names of a file to a DataGridView using FolderBrowserDialog?

How do I pass the name of the files that were found inside the selected folder? So far I've only been able to get him to get the file's path and move on to DataGridView and now I want to make him pass the name too. Here's the code p...
asked by 15.12.2014 / 15:28