Create Custom Criterion in NHibernate?
- by vbullinger
I'm still a bit of a n00b when it comes to NHibernate. Let's say I have the following:
var myCriteria = this.Session.CreateCriteria(typeof(SomeModel)).Add(Restrictions.Eq("SomeProperty", someValue);
Then, let's say I want to add criteria in a way that's reusable. Meaning, I want to make a custom criterion. I'm seeing very, very little…