Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can i make query with a predicate that tests null column in Breeze?

How can I make a query with a predicate that tests for null in Breeze?

with a Predicate.create("region", "==", null)

I get an 500 http error from server:

Unable to perform operation: eqon types:

I am using the Asp.Net Breeze Web Api Controller

like image 453
Souzinha Avatar asked Jan 16 '13 22:01

Souzinha


1 Answers

Predicate expressions for null data property values do work as in your example, but I am guessing that in your query "region" is an instance of the region type. I will look into this in more detail, but for the time being I am guessing that you also have a "regionID" property or something like it. So maybe try:

EntityQuery.from("Territories").where("regionID", "==", null)
like image 101
Jay Traband Avatar answered Oct 18 '22 18:10

Jay Traband