All,

I've been using NHibernate Linq quite happily in test without any
issues. We've moved our code to the Integration Test Environment and
suddenly NH.Linq is giving us this error:

"Exception An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource
resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue
value, Boolean add)
   at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue
value)
   at NHibernate.Linq.Util.SessionFactoryUtil.GetProxyMetaData
(ISessionFactoryImplementor factory, IDictionary metaData)
   at NHibernate.Linq.Visitors.AssociationVisitor..ctor
(ISessionFactoryImplementor sessionFactory)
   at NHibernate.Linq.NHibernateQueryProvider.Execute(Expression
expression)
   at NHibernate.Linq.QueryProvider.System.Linq.IQueryProvider.Execute
[T](Expression expression)
   at System.Linq.Queryable.Count[TSource](IQueryable`1 source)"...
etc.

If I convert the query to HQL, it works fine.

Any ideas as to what this means so I can track down what's causing it?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to