Hello,
I recently updated my NHibernate NuGet package from *NHibernate.3.3.2.4000*to
*NHibernate.3.3.3.4000 *and from that moment I started getting exceptions
from code where I never got any. Here are the two cases I noticed so far
are throwing this exception:
First example:
List<long> translationIds = searchResults.Distinct().ToList();
var translations = (from tr in
SessionBuilder.GetSession().Query<TmTranslation>()
where translationIds.Contains(tr.Id) && tr.Status >=
SegmentStatus.Translated
select new { Translation = tr, Unit =
tr.TranslationUnit })
.ToList();
throws "*The constant for 'System.Collections.Generic.List`1[System.Int64]'
is not supported*" and this code
var statuses = new[] { SegmentStatus.Reviewed,
SegmentStatus.ReviewedConfirmed }
return SessionBuilder.GetSession().Query<TmTranslationHistory>()
.Where(x => x.Translation == segment &&
x.LastModifier == revisionAuthor && statuses.Contains(x.Status))
.ToList()
.OrderByDescending(x => x.LastRevision)
.FirstOrDefault();
throws "*The constant for 'TMAppServer.Domain.Entities.TmTranslation' is
not supported*" (*TmTranslationHistory.Translation* is of type *
TmTranslation*)
Does anybody see what the problem could be?
Thank you,
Standa
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.