Questions tagged as 'c#'

1
answer

Find a letter in the upper case in the text

I'm doing some text checks for password. I have already localized for a special character but I did not find it for uppercase letter. I used Regex. For example if the text contains "test" returns false and if it contains "tesTE" returns tr...
asked by 31.01.2017 / 20:09
1
answer

How to map the results of a store procedure with an entity using Entity Framework?

Speak up. I'm doing a project with MVC 4 and EF6. I would call a proc and its results populate an entity. But my entity is not a database table, so I did not use Dbset on it. What happens is that this proc joins some tables. I am doing everyt...
asked by 21.06.2017 / 22:35
1
answer

Parse data from a C # bank?

I need to deserialize information from a database in C# , I have the following SQL in C# : select Id, Email, Name, Login FROM usuarios WHERE Login = @login and Senha = CONVERT(VARCHAR(20...
asked by 16.06.2017 / 22:33
2
answers

Error Setting Datasource in VS Community 2015 C # + ReportViwer + Mysql

Good afternoon. having a tremendous difficulty to solve this problem. I am in the distribution phase of an App and exactly today I had a serious problem. Generate a report using RiportViwer and Mysql in VSC 2015. Application running smooth...
asked by 31.03.2017 / 22:27
2
answers

Internationalization in Domain Driven Design (DDD)

What would be the best strategy to internationalize a system in the DDD architecture, knowing that we have strings to internationalize in the layers: Presentation - Views Application - ViewModels in DataAnnotation Domain - Validation and...
asked by 31.03.2017 / 14:53
1
answer

Using Session in an MVC controller returns error

I'm trying to use a session in an MVC application, I believe you're right but you're returning the error:    Object reference not set to an instance of an object When it tries to pass the value in the session and the value is not null....
asked by 31.03.2017 / 19:07
1
answer

Problems attempting to send email via smtp server

I'm developing an application which sends emails to the smtp.gmail.com server. When I'm connected to an ordinary network, it works perfectly. But, the network of my company occurs the following error:    System.Net.WebException: Unable to...
asked by 16.02.2017 / 18:19
1
answer

How to configure Api web route to accept query string?

I have a web api with the following method: [HttpGet] [Route("api/documento/doc/list?{cpf}")] public string Listar(string cpf) { return "value"; } I need the above method to be called through the url:    link The big pr...
asked by 15.02.2017 / 13:52
1
answer

Error opening Package Management Console

When I open Package Manage Console it gives me the following message:    Join-Path: Can not convert 'System.Object []' to the type 'System.String' required by parameter 'ChildPath'. Specified method is not supported.   C: \ Users \ ren...
asked by 19.12.2016 / 14:19
1
answer

Error in index and ListBox

This is my code: public static ListBox listBox1 = new ListBox(); Form2.Globals.listBox1.Items.Add(Form2.Globals.din); Form2.Globals.listBox1.Items.Add(Form2.Globals.dequi); Form2.Globals.listBox1.Items.Add(Form2.Globals.demer); Form2.Glob...
asked by 07.12.2016 / 15:53