entity framework select last month records

后端 未结 2 1744
攒了一身酷
攒了一身酷 2021-01-06 14:20

I have employee salary table that contains :

public partial class S_EmployeeSalary
    {
        public int SalaryId { get; set; }
        public int TypeId         


        
2条回答
  •  时光取名叫无心
    2021-01-06 14:44

    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)
    

提交回复
热议问题