Relative Content

Tag Archive for c#entity-frameworklinq

loop or a recursive method cant get the data

I have this data in one table and I am trying to do a loop or a recursive method. I need to get the result base on using the meeting id. If I am using meetingid 1 it would return 2,3. If I do meetingid 2 i would get 1,3 and if I do 3 I would get 1,2. I have this method but I need to call in many time and I wanted to know if there is a better way.

loop or a recursive method cant get the data

I have this data in one table and I am trying to do a loop or a recursive method. I need to get the result base on using the meeting id. If I am using meetingid 1 it would return 2,3. If I do meetingid 2 i would get 1,3 and if I do 3 I would get 1,2. I have this method but I need to call in many time and I wanted to know if there is a better way.

LINQ group with list inside shows only the first row

I have a view in the v_PortalProprietario database that returns in each line the name of the owners that are repeated and the accounts (Acertos) that are unique. I would like to make a query in Linq that groups the owner’s data into a DTO and a property with all the accounts referring to that owner.

LINQ Group with List inside showes only the first row

I have a view in the v_PortalProprietario database that returns in each line the name of the owners that are repeated and the accounts (Acertos) that are unique. I would like to make a query in LINQ that groups the owner’s data into a DTO and a property with all the accounts referring to that owner. Making the query below is returning only the first Acerto in List, but in database executing the view I have a lot of rows with the same Proprietario.