Questions tagged as 'linq'

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
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

Show result in textbox linq vb.net

This is my query you want to know how to pass each field to the textbox Dim query = From Q In Ejecutarconsulta("Select * from secreg where tabla='" _ + tabla.Trim() + "' and codempresa='01'" ).A...
asked by 24.07.2016 / 19:45
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

LinQ: show list of parents and children who depend on a model value

I have two models, Category and ExternalResources: Category public partial class Category { public long CategoryID { get; set; } public string Name { get; set; } public Nullable<long> ParentCategoryID { get; set; }...
asked by 21.05.2018 / 16:04
0
answers

Clean datagridview connected to data c #

Well I'm making an invoice which is that the invoice consists of two tables detail purchase and purchase she keeps and everything perfect! My problem is that when I save correctly if I want to return an invoice without closing the form, the prod...
asked by 03.04.2018 / 11:20
1
answer

Read Part of the XML and some children with LINQ repeats

good afternoon, I have the following XML <Detalle> <Item> <NroLinDet>1</NroLinDet> <CodItem> <TpoCod>2</TpoC...
asked by 12.12.2018 / 15:15
2
answers

error 'System.InvalidOperationException' conflict when joining two views?

I have this view that you need the Audit model but the masterPage has @Html.Partial("/Views/component/panelNavbar.cshtml") conflict with the Audit model with ConfMaster how to solve this? Index Audit @model IEnumerable<C...
asked by 11.04.2018 / 15:25
1
answer

query in Linq to entities leftjoin with an extra field

Good, I need to obtain the objects that are in a collection that if they exist in another, a field says "exists", and if they do not exist, say "it does not exist" The ProgramasLivianos object has a field that is called TieneProgram...
asked by 05.07.2017 / 15:36
2
answers

Iterate over sublists within a list

I currently have a list of the Activity class, this class, among other properties, has one that is Operational. The fact is that I take charge of all the activities of all the workers in the lAux list and what I need is from that great list t...
asked by 22.11.2017 / 13:04