Ok, that makes sense
What I'm trying to do, is something like this:
public abstract class BookBase
{
public virtual int ID { get; set; }
public virtual string Name { get; set; }
public virtual string Author { get; set; }
}
public class Book : BookBase
{
public virtual ICollection<BookRevision> PreviousVersions { get;
set; }
}
public class BookRevision : BookBase
{
public virtual int VersionNumber { get; set; }
public virtual DateTime VersionTimeStamp { get; set; }
}
So, Book has a collection of BookRevisions within it..
Is that possible? Or am I barking up the wrong tree..?
On Tuesday, 13 November 2012 12:05:35 UTC, Alex Brown wrote:
>
> 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/-/P00xjIfo6vEJ.
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.