6
Answers

How to retrieve value using LINQ in MVC

Jaima Joseph

Jaima Joseph

10y
1.4k
1

Hii,

Please Any Help??

I have two tables where one is having some ids(primary key) and in the second table each of these id can have zero or more records. And each of these records contains some price and quantity values .I want to show the IDs in the first table and the sum of product of price and quantity in second table for the corresponding records in first table, in my view in my MVC application.
Ie. in my view, I want to show id and its value (sum of product of all the records value in second table ).How two code the linq query for this in mvc??
 
Please help.... 
Answers (6)