Questions tagged as 'c#'

1
answer

Filter Json coming from the bank using Lambda C #

I'm starting development and I'm in need of help. I got this Json I'm getting from the bank. However I need to filter the information by name for my method to return. For example. If the name="Percent Processor Time", it should only return the a...
asked by 30.01.2018 / 14:35
1
answer

Field of decimal type Entity Framework ASP.NET MVC

I have a table named Pecas where only has name and value, but when I click on create new piece is not saving in the database, the msg that was added but not inserting, the debug shows the name but the value always it's coming 0 no matter what th...
asked by 30.01.2018 / 02:09
0
answers

Compile multiple files

I have 3 files: client.exe, client.dll, client.dat. I wanted to compile them into a single exe like Molebox does. I searched for Binder Files , tried to put the resourcer of my application, but always have to extract the files to use th...
asked by 13.12.2017 / 05:17
0
answers

ASP.NET MVC: Problem assigning decimal value

ViewModel.cs Tab [Required(ErrorMessage = "A altura é obrigatória.")] public decimal Altura { get; set; } ficha.js $("#Altura").mask("9.99"); Controller.cs Tab [HttpPost] public ActionResult Cadastro(FichaViewModel fichaView) { i...
asked by 07.12.2017 / 16:00
1
answer

MaskedTextBox Interactive for Cell Number

I have a MaskedTextBox on my system with the following format (xx) 9xxxx-xxxx for mobile phones that have the digit 9 plus, but in some states they do not have this extra digit thus getting (xx) xxxx-xxxx . How do I make Mas...
asked by 04.12.2017 / 03:07
1
answer

Dispose in Unit Of Work

I have a web application and I'm using repository * and Unit Of Work . In some examples I saw that after performing some change operation on the bank we should call the Dispose() method. Instantiated UnitOfWork : priv...
asked by 04.12.2017 / 13:23
0
answers

Error saving data with EF

I'm setting up my unit tests and tried saving the data to a table using the Entity Framework, but at the time I run it returns an error.    Validation failed for one or more entities. See   'EntityValidationErrors' property for more details....
asked by 24.11.2017 / 11:52
1
answer

How to check if the user typed something when prompted for an entry in C #

The following validation checks whether an entry is a positive number. if (Q[i] < 0) { Console.WriteLine("Digite um número positivo!"); goto Start; } Just like this check, if nothing was typed, the program would only return to th...
asked by 23.11.2017 / 16:07
1
answer

Restarting progressbar count c #

I have in my code a progressBar, which is filled in 60 seconds, how do I do that when I get in 60 seconds it starts counting again. private void timer_progress_Tick(object sender, EventArgs e) { pro_separacao.Increment(1); }     
asked by 28.11.2017 / 17:18
0
answers

Application to download all files from a directory in remote FTP

I'm trying to make an installer-type application for a proprietary system. The process it does is: it creates a directory and two subdirectories on a PC that will use the system. After creating the directory and subdirectories, the applica...
asked by 28.11.2017 / 16:47