XAF Criteria Operator Returns Nothing

时间:2016-04-25 09:00:36

标签: c# devexpress xaf

I have tried to filter some records without success using CriteriaOperator.Parse. Im sure there are records that equal my criteria.

Can you show me how can i do it?

Current Code

uow = UnitOfWork and im sure its not null

XPCollection coll = new XPCollection(uow, typeof(HataBildirim), CriteriaOperator.Parse(" [HataTespitYeri] = ? and [Tarih] > ? and ([CreatedOn] > ? OR [LastModifiedOn] > ?)",hatatespityeri, convservertarih, senkdate));

1 个答案:

答案 0 :(得分:1)

正如TSV评论的那样,问题几乎可以肯定是由于您只传递了三个参数值,其中您的标准中有四个占位符。

假设您的“senkdate”应该与[CreatedOn]和[LastModifiedOn]进行比较,只需传递两次:

@LOCAL