|
From: Matthew B. (JIRA) <nh...@gm...> - 2011-06-09 19:16:23
|
queryover fails where referencing enum in VB.NET ------------------------------------------------ Key: NH-2763 URL: http://216.121.112.228/browse/NH-2763 Project: NHibernate Issue Type: Bug Components: QueryOver Affects Versions: 3.1.0 Reporter: Matthew Beer Priority: Major Prior issue [NH-2407] dealt with what was probably the same issue for the LINQ provider. The following fails in VB.NET Public Enum States Open = 1 Closed = 2 Held = 3 End Enum results = session.QueryOver(of foo)().Where(Function(f) f.State = States.Open) Stack dump looks like: Exception: Cannot interpret member from ConvertChecked(ConvertChecked(value(MyNamespace.MyRepository+_Closure$__32).$VB$Local_criteria.State))] NHibernate.Impl.ExpressionProcessor.IsMemberExpression(Expression expression) +318 NHibernate.Impl.ExpressionProcessor.ProcessBinaryExpression(BinaryExpression expression) +95 NHibernate.Impl.ExpressionProcessor.ProcessExpression(Expression expression) +57 NHibernate.Criterion.QueryOver`2.Add(Expression`1 expression) +28 NHibernate.Criterion.QueryOver`2.NHibernate.IQueryOver<TRoot,TSubType>.Where(Expression`1 expression) +5 Note: database stores value as a string -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |