Comments (2)
CriterionVisitor.cs - ComparisonExpression method can be changed to the following to fix:
public override ICriterion ComparisonExpression(ComparisonExpression expression)
{
var left = ProjectionVisitor.CreateProjection(expression.Left);
if (expression.Right.ToString() == "null")
return expression.Operator == Operator.Eq ? Restrictions.IsNull(left) : Restrictions.IsNotNull(left);
var right = ProjectionVisitor.CreateProjection(expression.Right);
switch (expression.Operator)
{
case Operator.Eq: return Restrictions.EqProperty(left, right);
case Operator.Ne: return Restrictions.NotEqProperty(left, right);
case Operator.Gt: return Restrictions.GtProperty(left, right);
case Operator.Ge: return Restrictions.GeProperty(left, right);
case Operator.Lt: return Restrictions.LtProperty(left, right);
case Operator.Le: return Restrictions.LeProperty(left, right);
default: throw new NotSupportedException();
}
}
from nhibernate.odata.
Thank you for reporting this issue. It has been solved with release 0.2.2.0.
from nhibernate.odata.
Related Issues (20)
- Implement duration support
- Incorrect operator precedence HOT 1
- OData 4 support HOT 1
- Additional OData query options support HOT 1
- Support for DTOs HOT 6
- Member resolving is not tested
- CaseSensitive parameter not working HOT 5
- Issue with Any in OData $filter clause. HOT 2
- Support $count and &inlinecount HOT 1
- Query is not supported with substringof and 3 or more clauses HOT 2
- Any/All with collections of basic types.
- "Not Contains" clause not works HOT 2
- `bigint`/`long` overflow
- Implement a sample project implementing a full OData service HOT 4
- .NET Standard compatible
- Allow column names to be specified case insenstive HOT 1
- indexof parameters are swapped for sql HOT 1
- How to use in conjunction with Asp.net MVC and webapi 2.0? HOT 6
- substringof - which is correct implementation? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nhibernate.odata.