Jaima Joseph

Jaima Joseph

  • NA
  • 94
  • 107.5k

How to retrieve value using LINQ in MVC

Mar 26 2014 6:03 AM

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)