By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,050 Members | 1,252 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,050 IT Pros & Developers. It's quick & easy.

How to write Sql Query in LinqtoSql?

P: 2
I have a Query for getting the Sum of Stockvalue

Expand|Select|Wrap|Line Numbers
  1. select sum(Itm_Prc*Itm_CrntStk) as Stckvalue from dbo.Ptr_ItemHdr
how to write this Query in lingtosql?
help me.
Aug 6 '13 #1
Share this Question
Share on Google+
1 Reply

P: 158
Hey vmkrishna534, try this code...

Expand|Select|Wrap|Line Numbers
  1. myEntity.Table_Name.Sum(a => a.field1 * a.field2);
Aug 7 '13 #2

Post your reply

Sign in to post your reply or Sign up for a free account.