Questions tagged as 'linq'

0
answers

How can I achieve the result of a list?

I have a program which returns system.collections.generic.list 1 system.object I have tried several times to return the actual value of this parameter and to change it according to what I found in google but it does not work for me....
asked by 15.02.2017 / 18:21
1
answer

Group by of a DataRow to return it to my DataSet

I have the following cycle so that each time I go through the DataRow add the value that touches more " :00 " and another equal with " :30 ", the topic is in which I repeat the values that I already have by default and I want...
asked by 20.01.2017 / 22:11
1
answer

How to write a Lamdba function in VB.NET

Note: This is a translation of an OS question in English. I am working on a VB.net project. I am new with VB.net LINQ and I would like to know the Lambda equivalent of var _new = orders.Select(x => x.items > 0); On VB.net O...
asked by 28.02.2017 / 15:36
2
answers

Select objects associated with lists related to LINQ

I explain my scenario. I have a method that returns a list of objects Cuenta ( Id_Cta , Desc_Cta ) in the GetCuentas(filtro) method I have a method that returns a list of objects Usuario ( Id_Usuario...
asked by 09.01.2017 / 14:51
1
answer

Database with sql server and c # win forms

Hello friends, I have a database like the one in the figure and I manage it from an application in c # windows forms The problem I have is with the intermediate tables (testsQuests and questionsOptions). When creating an entry from anot...
asked by 25.01.2017 / 16:12
1
answer

How to get the return value using LINQ from an XML file

I have an application which calls a web service. For this I am using LINQ. What I want to do is the value of 'Caption' come from an XML file in which I pass as a parameter. When doing the debug I see that the parameter passes well, but it...
asked by 18.11.2016 / 16:34
1
answer

Query LINQ Dataset in Datagridview repeated rows

1. I have a query in LINQ (VB.NET): Dim Consulta = From ConsultaEmisor In Emisor From ConsultaReceptor In Receptor From ConsultaComprobante In Comprobante Select New With {Mis campos} 2. I fi...
asked by 27.03.2016 / 11:31
1
answer

Entity Framework approach code firts

I want to use EF the Code Firts environment, I see on the web that there are two ways a simple one that only creates the DbSet runs and the database is created. public class CompanyContext : DbContext { public CompanyContext() : base("Comp...
asked by 31.03.2016 / 03:32
1
answer

format problem query linq to xml

I do the following linq query on an xml file, and it shows me this result, how can I remove the keys and the text (code =), I am programming on asp.net c #. this is the linq query var q = (from r in LicitacionesD.Descendants("Licitaci...
asked by 23.05.2016 / 19:04
1
answer

linq sum group by from a list

Hello I have a list of Articles of the Article class public class Articulo { public Int32 IdArticulo { get; set; } public decimal Cantidad { get; set; } public string Estado { get; set; } } well, from this list, I need to add th...
asked by 13.10.2017 / 21:14