Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
How to write Linq query for count salary
Ghouse Hussain
May 16 2016 3:00 PM
464
Reply
Hello Friends,
In my database, I have a colum Salary with numeric(18,0)
I want to write code for getting total employee salary
For example; select couunt(*) from Employee
select Department,count(*) from Employee group by Department
Here I wrote;
var count = db.Employees.Count(x => Convert.ToBoolean(x.Salary));
But,Im getting error. please help me to solve
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
error showing cant implecitly convert coi to string
How to write a linq query to match this sql one ... ?