Questions tagged as 'c#'

1
answer

How to add data in an additional row on a table in reportviewer? In C # MVC

For example, I have in reportviewer in a table that I show the following data, grouped by account: But it turns out, that for each account (n accounts), above the row where the name of the account is n °, I want to add a row with a data of...
asked by 25.09.2016 / 03:45
2
answers

Obtain object with Linq with its references

I have this query in LinQ, I filled the object with the query but it does not complete an object variable. The model of Retención has a variable Empresa that is another model, and is the one that does not fill, remains null: p...
asked by 21.02.2018 / 01:35
2
answers

What is the correct way to implement WCF?

I have doubts about the WCF at the time of its implementation that it would be appropriate to create WSDL for each entity that has the exampleServiceService a WSDL in which usually carries the CRUD methods or a single WSDL that is named for exam...
asked by 30.08.2016 / 08:35
1
answer

I need to Refresh a View When using onchage in a select. in MVC 4 razor C #

I have a problem with the use of a select class="selection-box large-select" name="drop" id="drop"onchange="rut()"> which I am using it to send its value to a [HttpPost] public ActionResult MiPerfil(string pRutIn) { pFecha...
asked by 16.09.2016 / 19:43
1
answer

How can I pass this to a lambda expression?

I want to do this in a code that only takes one line, who can help me would be great. long processSize = 0; Process bProcess = null; foreach (var process in Process.GetProcessesByName(name).Where(x => x.PagedMemorySize64 > processSize))...
asked by 08.08.2016 / 23:43
1
answer

Make DataGridView Auto-Height according to the Rows

I need to be able to accommodate the height of FORM or DataGridView based on the amount of data / rows that were filled in DataGrid . This taking into account what cases there are four rows, and others that there are o...
asked by 16.05.2017 / 17:49
3
answers

Equivalent in C # ClassT of java

In Java, I can declare a generic T and that a method receives as an argument the class to which the generic belongs. For example: protected static <T> T hacerAccion (Class<T> respuesta) { //implementación... } What wo...
asked by 11.05.2017 / 23:15
1
answer

Convert SQL with group by a LINQ

I am starting in the linq world, I would like to convert the following SQL query to linq. It's a bit complex and that's why I get lost. select T_Empresas.* , T_EmpresasIndicadoresK.* from dbo.T_Empresas, T_EmpresasIndicadoresK, (sele...
asked by 17.08.2016 / 14:55
1
answer

Use unresolved unity

I would like to know if there is any way to use unity with the configuration of its records in an external library and this is added to my web project or console, and when the project controllers receive an interface as parameters are resolved....
asked by 16.05.2016 / 21:20
1
answer

Is it possible to read the contents of a file without keeping it in memory?

I'm working with the scanner of an interpreter that I'm doing, but I find that the class StreamReader becomes a bit slow with somewhat heavy files, so far I have the following: using System.Collections.Generic; using System.IO; abstract...
asked by 17.05.2016 / 17:31