How to use DbFunctions.TruncateTime

var activeSchedulers = (from scheduler in DbContext.Scheduler
                                                    where scheduler.isActive == "A"
                                                    && DbFunctions.TruncateTime(scheduler.Date) == DbFunctions.TruncateTime(DateTime.Now)
                                                    select scheduler).ToList();

Comments

Popular posts from this blog

Provision AWS EC2 Instance and RDS with Terraform, and Deploy Spring Boot App to EC2 Instance via GitHub Action Pipeline

JQuery UI Autocomplete, custom HTML structure for result?

Easy Ui Jquery easyui-textbox change onChange event