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

From: nhusers@googlegroups.com [mailto:nhusers@googlegroups.com] On Behalf Of 
Alex Brown
Sent: den 13 november 2012 13:06
To: nhusers@googlegroups.com
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 
nhusers@googlegroups.com<mailto:nhusers@googlegroups.com>.
To unsubscribe from this group, send email to 
nhusers+unsubscr...@googlegroups.com<mailto:nhusers+unsubscr...@googlegroups.com>.
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 nhusers@googlegroups.com.
To unsubscribe from this group, send email to 
nhusers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to