I recently upgraded from 3.2 to the latest version of NHIbernate and now I'm having an issue with the following Linq:
foreach (var item in this.empresaRepository.GetMany(e => e.Publicar && e.Producto.Select(p => p.Publicar == true).Count() > 0).OrderBy(o => o.Nombre).ToList()) Error: Exception of type 'Antlr.Runtime.NoViableAltException' was thrown. [.OrderBy[iSeguro.Model.Empresa,System.String](.Where[iSeguro.Model.Empresa](NHibernate.Linq.NhQueryable`1[iSeguro.Model.Empresa], Quote((e, ) => (AndAlso(e.Publicar, GreaterThan(.Count[System.Boolean](.Select[iSeguro.Model.Producto,System.Boolean](e.Producto, (p, ) => (Equal(p.Publicar, True)), ), ), p2)))), ), Quote((o, ) => (o.Nombre)), )] If I take out the inner Select it seems to work fine. Problem is that this worked with no problems with version 3.2. -Thanks, Fabricio -- You received this message because you are subscribed to the Google Groups "nhusers" group. To view this discussion on the web visit https://groups.google.com/d/msg/nhusers/-/0JDKzq9gdZ4J. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
