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.
How can I convert this SQL query to linq when I have sub query, grouping and having clause?
I’m really struggling to convert the following SQL to a LINQ query. Can anyone help?
Cannot implicitly convert type ‘System.Collections.Generic.List<>’ to ‘System.Collections.Generic.List
I got this error when I tried to make a method to return all users which have no users
Severity Code Description Project File Line Suppression State
Error (active) CS0029 Cannot implicitly convert type ‘System.Collections.Generic.List<<anonymous type: decimal SSN, string FullName>>’ to ‘System.Collections.Generic.List’
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.
Deleting a record by ID in Entity Framework
I am trying to write a method that will delete a DB record by ID. However this method…
EF Core: dynamically built Where Expression could not be translated
I am trying to dynamically enhance an existing Where predicate expression based on a parameter:
LINQ to Entities does not recognize the method some method, and this method cannot be translated into a store expression
I have the following code which is returning an error as mentioned
Trouble displaying a list of movies corresponding to each genre in MVC web application
I’m working on an MVC web application using C# and Entity Framework. I have a Movie class with a GenreId property, and a Genre class with an Id property. I’m trying to display a list of movies for each genre on a web page.