We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

DataOperations complex query not working in nHibernate 5.

Thread ID:





145157 Jun 10,2019 04:39 PM UTC Mar 16,2021 01:48 PM UTC ASP.NET MVC - EJ 2 13
Tags: Grid
Asked On June 10, 2019 04:39 PM UTC

using Syncfusion.EJ2.Base.DataOperations if I send a query to the server which contains more than one filter (i.e. using the angular query builder component) nhibernate throws the following error.

InnerException{"A recognition error occurred."}System.Exception {Antlr.Runtime.NoViableAltException}

I may be wrong but my googling seems to suggest that nhibernate does not support the query method .startswith() but uses .IsLike(keyword, MatchMode.Start)  as well as MatchMode.Anywhere, and MatchMode.End for the others.

Vinoth Kumar Sundara Moorthy [Syncfusion]
Replied On June 11, 2019 11:42 AM UTC

Hi David,  
Good day to you. 
We need below information to provide a suitable solution before validating the reported issue.  
·       Share the QueryBuilder Code  
·       Share the request you sent to the server. 
·       Share the screenshot of stack trace
Could you please get back to us with details requested above? This information will be useful for further analysis. 
Vinoth Kumar S 

Replied On June 11, 2019 12:28 PM UTC

I was wrong about the startswith stuff, it breaks for every possible complex query i've tried including a simple id lookup (in the example below I query two contact ids.)

Simplified code and exception