Questions tagged as 'c#'

1
answer

Problem with Linq in Lambda: LINQ to Entities does not recognize ... get_Item (Int32). How to solve?

When trying to execute the loop for (when the query is executed) it is giving error in my lambda expression: var funcionarios = repository.Funcionarios .Include(x => x.Cargo) .Include(x => x.Bairro) .Include(x => x....
asked by 18.08.2014 / 23:48
1
answer

How to Shoot Vibration on my device

How does Vibrator fire in my Windows Phone 8.1 app? As for example: if(==0) { VIBRAR APARELHO; }     
asked by 15.08.2014 / 19:54
1
answer

RSA, SSLStream - Key Exchange

Good people, I'm using SSLStream to communicate between a client and server, using OPENSSL. And this my client, is a machine (digi), which as a requirement has to use RSA encryption. So I have to do a public key exchange between client and serve...
asked by 03.07.2014 / 14:29
1
answer

Problem returning Entity models: "The entity or complex type ... can not be constructed in a LINQ to Entities query"

I'm trying to return a list of objects generated by the DataBase First of the Entity Framework but I get this error:   The entity or complex type 'leaosites04Model.TB_LEMBRETES' can not be constructed in a LINQ to Entities query. I'm tryi...
asked by 03.07.2014 / 10:49
1
answer

Loop asynchronous calls and process data at the end of all executions

I have a method of a web service that receives the IP of a server as a parameter and returns a DataSet . Multiple servers must be queried by this web service, A List<string> contains the list of IPs. A loop executes the meth...
asked by 26.02.2014 / 15:57
1
answer

How to add "buttons" to Tabbedpanel

I'm involved in a personal project where I want to work out a calculator with some items that are inserted in arrays. I chose a class called "calc.cs" to construct a method with a code similar to this public void AddDrinkstoTabbedpanel()...
asked by 24.02.2014 / 12:24
1
answer

Linq - Search for objects that have a pre-determined list

I have a many-to-many entity, many students for many subjects. And I need to get all the students who have all the materials I want. For example, subjects: Mathematics, Portuguese and Physics. I need to get only the students who have these th...
asked by 20.01.2016 / 17:36
1
answer

Lock keyboard and mouse in C #, but keeping the execution of a method

I need to block the use of the keyboard and mouse in form while it will execute a certain function of the system, in which I am putting the call of the lock method in the event of Load of the form, in which it is actually blocking the key...
asked by 18.01.2016 / 22:01
1
answer

How to export an HTML / C # (Razor) page to PDF?

I have some simple tables and need to export them to PDF. I found the itextsharp library, but in the compressed file there are many folders and files and I do not know how to add the reference in my application. I would like help exporting, e...
asked by 26.03.2014 / 22:20
4
answers

Long processes in C #

I need to do a routine where the user will upload a data load file, and C # will process it and save it to the database, without giving time-out and showing the progress of the process to the user . My question is: how to do it? I do not h...
asked by 25.03.2014 / 14:27