nhibernate activerecord lazy collection with custom query
Posted
by George Polevoy
on Stack Overflow
See other posts from Stack Overflow
or by George Polevoy
Published on 2010-03-12T18:32:24Z
Indexed on
2010/03/13
0:17 UTC
Read the original article
Hit count: 196
nhibernate
|castle-activerecord
What i'm trying to accomplish, is having a temporal soft delete table.
table Project(ID int)
table ProjectActual(ProjectID int, IsActual bit, ActualAt datetime)
Now is it possible to map a collection of actual projects, where project is actual when there is no record in ProjectActual.ProjectID = ID, or the last record sorted by ActualAt descending has IsActual set to 1 (true)?
© Stack Overflow or respective owner