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

DataOperations complex query not working in nHibernate 5.

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.

NameValueType
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.





15 Replies

VK Vinoth Kumar Sundara Moorthy Syncfusion Team June 11, 2019 06:42 AM

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. 
 
Regards, 
Vinoth Kumar S 



DA David June 11, 2019 07:28 AM

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