I have employee salary table that contains :
public partial class S_EmployeeSalary { public int SalaryId { get; set; } public int TypeId
looks like this part is not going to return a result since it cant be bigger and smaller than 30 at the same time.
DbFunctions.DiffDays(x.SalaryDate, DateTime.Now) > 30 && DbFunctions.DiffDays(x.SalaryDate, DateTime.Now) < 30)