Questions tagged as 'c#'

1
answer

Unhandled exception: System.StackOverflowException [duplicate]

My Winforms C # project has a routine that returns approximately 6000 items. Every time you run the routine it is displayed in Connection.Open() of DataSet to StackOverflowException . I've never seen this mistake. What ca...
asked by 18.10.2018 / 16:02
1
answer

How to do a search with Join using Entity framework Lambda and Linq

How would I do to search two or more tables. In the system I'm doing, I have the Boat, BarOperationType, and BarBase My mapping is as follows: HasRequired(c => c.ClasseBarco) .WithMany(c => c.Barcos)...
asked by 23.10.2018 / 15:43
1
answer

Data from the same table for different Views?

I have found it difficult to solve the following problem: Assuming I have the following structure in the database: Id int identity primary key CodigoBanco char(3) Descricao varchar(100) Endereco varchar(300) Bairr...
asked by 25.10.2018 / 03:59
0
answers

Get value from an entity via navigation property

I have a question that seems basic, but I'm breaking my head to solve. How can I get the value of an attribute of an entity via Properties Navigations? For example, I have the classes: public class Budget { public Guid Id {get; set;}...
asked by 17.10.2018 / 21:38
0
answers

How to create a table with DataGridViwer and get TXT data

Hello, I just migrated from C to C #. I learned some things from C # by seeing the compiler error messages. What I want to do is to have Datagrid look the way the image is: Link. Well, I need exactly that. How to get the data from tx...
asked by 17.10.2018 / 19:29
0
answers

Digital certificate in ASP.NET Core 2.0

I have a project in ASP.NET Core 2.0 where I am generating contracts in PDF, however, I need to sign them with the company's digital certificate A1, only this part is missing to finalize the project. Thanks in advance for the collaboration, I...
asked by 17.10.2018 / 19:33
1
answer

Hello, my problem is that the email is being sent only when I go to check the email instead of showing the sender's email shows the recipient's

protected void btnEnviar_Click(object sender, EventArgs e) { string desEmail = "[email protected]"; string remetenteEmail = txtEmail.Text; //O e-mail do remetente MailMessage mail = new MailMessage(); mail.To...
asked by 01.11.2018 / 22:19
1
answer

Lazy Load only loads data when subtract the solution

I have the following problem: When I make the Entity Framework add a data in the base, it does, but it does not return the attributes of type loaded Class. For them to load normally, I need to reestablish the solution. My mapping is correct ....
asked by 25.10.2018 / 21:56
0
answers

C # compiler does not update

I'm starting my studies in C #, I can not use visual studio because of the lag of my pc, but when I install the latest version of the SDK the C # compiler still shows in the cmd that supports up to version 5 of the language, Currently we are at...
asked by 15.10.2018 / 01:33
1
answer

trying to compile code

Good afternoon and good evening. I'm doing a group college project and know that the best thing to do is to play the code on a source code hosting platform for everyone to work well and in case we're using GitHub. Anyway, I created a Cadastro...
asked by 12.10.2018 / 23:22