Use
ForHistoryOf<entityType, revEntityType>()
Instead of
ForRevisionsOf

From: [email protected] [mailto:[email protected]] On Behalf Of 
Alex Brown
Sent: den 13 november 2012 13:06
To: [email protected]
Subject: [nhusers] Retrieving the revision number and revisionType with 
nhibernate.enver

I'm querying my revisions like this:

    var auditReaderResults = _session.Auditer()
                        .CreateQuery()
                        .ForRevisionsOf<MyClass>()
                        .Add(AuditEntity.Id().Eq(new 
Guid("EB7027C0-687A-446F-AFF7-E6CF7BEE3391")))
                        .Results();

This is bringing back the correct entities, but I was wondering if there was a 
way to also bring back the REV and REVTYPE data?

Would I create a MyClassRevision entity (inheriting from MyClass) for example, 
with the REV and REVTYPE properties on?
--
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/-/s3AqMunsC4EJ.
To post to this group, send email to 
[email protected]<mailto:[email protected]>.
To unsubscribe from this group, send email to 
[email protected]<mailto:[email protected]>.
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

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