This question is locked. New answers and comments are not allowed.
Hi,
I want to use LINQ for my classes and wrote the following source code:
By executing the query I recieve the following error message:
Ex {"Field '{CritDate}' not found on class 'clsDepartment'."} System.Exception {Telerik.OpenAccess.OpenAccessException}
That's right: There is no such field, it's the criteria.
An OQL-Query with the same structure works fine.
I need some hint. Thanks.
Christian
I want to use LINQ for my classes and wrote the following source code:
DateTime CritDate= System.DateTime.Now; |
var ext = scope.extent<clsDepartment>(); |
var EL = from DL in ext |
where DL.Startdate<= CritDate |
orderby DL.Title |
select DL; |
List<clsDepartment> Results = EL.ToList<clsDepartment>(); |
Ex {"Field '{CritDate}' not found on class 'clsDepartment'."} System.Exception {Telerik.OpenAccess.OpenAccessException}
That's right: There is no such field, it's the criteria.
An OQL-Query with the same structure works fine.
I need some hint. Thanks.
Christian