I have been using the NHibernate templates and really enjoying them. I have also been watching a lot of the PLINQO videos on YouTube and was wondering if the rules feature was part of NHibernate templates? Specifically, I'd like to call the RuleManager to validate objects manually, but do not see how to do this in the NHibernate templates. They seem to be part of the PLINQO templates just not the NHibernate.
For example, I'd like to do what I see in the video
var user = new User{EmailAddress = "spock"};
var result = db.RuleManager.Run(sser);
Hello,
There currently is no support for rules in the PLINQO NH or PLINQO EF templates. We are working to add support for the rules engine in a future release. If you wish to implement the rules engine support and submit a patch that would be awesome. One could look to see how it is implemented in PLINQO L2S and convert it over to the NH templates. I wouldn't think it would take to much work.
Blake Niemyjski CodeSmith Tools, LLC. Software Development Engineer Blog: http://windowscoding.com/blogs/blake/ .NetTiers team | Visit http://www.nettiers.com
Im going to take a look and see what I can do. Hopefully Ill come back with good news