How to use datediff with LLBLGen Pro

If you want to use datedif to filter on a date, you can use code like: public EntityCollection<Customers> GetCustomers(DateTime creationDate) { EntityCollection<AfhaalopdrachtEntity> result = new EntityCollection<AfhaalopdrachtEntity>(); // Filter IRelationPredicateBucket filter = new RelationPredicateBucket(); IPredicate customerCreateDateFilter = new EntityField2("CreateCustomerDiff", new DbFunctionCall("DATEDIFF(day, {0}, {1})", new object[] { CustomerFields.CreationDate, creationDate})) == 0; filter.PredicateExpression.Add(customerCreateDateFilter …