Questions tagged as 'c#'

2
answers

Unsaved relationships

I have this question where thanks to the help of colleagues I was able to solve my situation. Well, at least in parts ... After making the adjustments pointed out, the data is being saved. But relationships are not being saved during data entr...
asked by 29.05.2016 / 05:55
2
answers

Send Boleto.net by email

I have a console application that every day during the dawn should send tickets to the customers, access and return of the DB is ok, the system returns a list with all the data of the client / Boleto, in the code example: / p> string vencimento...
asked by 10.05.2016 / 17:50
2
answers

Recursion in the entity-framework

I'm starting in C # and I'm having some difficulties with the Entity-Framework. I have the following scenario: public InstituicaoMap() { // Primary Key HasKey(t => t.IdInstituicao); // Properties Property(t => t.Nome)...
asked by 03.05.2016 / 18:09
1
answer

Avoid saving duplicate data

In my project I have a rule that does not save and does not show in Grid duplicate data. For example, on the system I read an XML and save the tags information to a table in my database so that this information is displayed in a Grid ....
asked by 29.06.2015 / 14:23
2
answers

How to get data from two tables in the same column?

I have two tables in the database: Tabela1 Id Nome Sexo 1 NomeA Macho 2 NomeC Fêmea Tabela2 Id Nome Sexo 1 NomeB Macho 2 NomeD Fêmea I would like to have the following re...
asked by 30.07.2015 / 18:54
2
answers

cmd.CommandType = CommandType.Text - Why use?

Have a good day. I am populating a grid, and after searching the internet, I saw that some use the command: cmd.CommandType = CommandType.Text; My question is, why use? what's the difference? I did some testing here, and it works normall...
asked by 11.07.2016 / 13:18
2
answers

Compare properties of an object with properties of a list

I have a method: public void MetodoAleatorio(List<RequisicaoFisicaDTO> lstRequisicaoFisicaDtos) { RequisicaoFisicaDTO requisicao = lstRequisicaoFisicaDtos.FirstOrDefault(); } Where I get a DTO list and need to check if some prop...
asked by 12.07.2016 / 15:24
2
answers

2 DataGridView when clicking on the first play record in 2?

I'm using WinForms , I already have a Gridview populated, now I need to double-click on a particular line, this record of the first grid and throw the same record on the second grid. If it were possible could you do this with more than 1 r...
asked by 21.07.2016 / 21:41
2
answers

How to change project type in GitHub through Visual Studio [closed]

Well, I created a Reposótirio in the GitHub through VisualStudio However, by giving Commit/Push it was the type of project being JavaScript : But, I want to change it to be of type C# . How do I do...
asked by 26.12.2016 / 14:09
1
answer

How to make text from a cell take up two rows within the same cell in Crystal Reports with C # winForms?

I am creating a report with Crystal Reports. It is working, but it has the following problem: When the content of the cell is larger than its space, some of the content does not appear. How do I pass down the part that does not appear?     
asked by 16.12.2016 / 15:02