I think that all hard-coded database field names is evil. and that's
way I love fluent NH and LambdaExtensions

Can someone tell me if it's possible to remove [CreateCriteria
("Definition")] with some LambdaExtensions API

IList<Milestone> milestones = session.CreateCriteria(typeof
(Milestone))
        .Add<Milestone>(m => m.SiteRevisionId == ProjectId)
        .CreateCriteria("Definition")
        .CreateCriteria("BaselineMilestones")
        .Add<BaselineMilestone>(b => b.BaselineID ==
baselineID).List<Milestone>();
--~--~---------~--~----~------------~-------~--~----~
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