How to get Sum of days between to dates using linq
Are you looking for a way to get Sum of days between to dates using linq ? then read this thread to know how to get it
i have two tables one is UserTable and another is Usercompanies Table
UserTable field
1. UserId
2. UserName
3. Graduation
UserCompanies
1. Id
2. UserId
3. Company Name
4. Joining Date
5. Leaving Date
5. Currently Working
i want to select those users which have to more then 2 years experience on basis of joining and leaving date. user companies may be more then one and user can currently working in maximum 3 companies.
UserId of UserTable is foreigen key in UserCompanies Table
so please suggest me query for that
Thanks & Regards :
Hari