-
One of the more interesting ability of NHibernate is to selectively filter records based on some global filters. This allow us to very easily create global where clauses that we can flip on and off at the touch of a switch. Let us take a look at see what I mean. We define the filter effectiveDate: <...
-
Surfing in the NET, to find some NHibernate.Validator (NHV) example, I saw that there are various things not so clear about how NHV is working. In this post I’ll try to give you a more deep explication. Class validation definition In these examples I will use the follow simple class : public class...
-
I don’t know how many times you heard a mad man talking about “mapping source” in NHibernate… Map a class in NH without use XML at all ? only a crazy man can say that . As usual an entity implementation: public class Animal { public virtual int Id { get ; private set ; } public...
-
There's no better way to explain some code-related issue than providing a test for them, and that is what any NH team member is going to ask you no matter how clearly you described it; that said.. why not being smart enough to provide it since the beginning? For those who doesn't know what a...
-
Our wiki is on movement, visit our articles to learn more about this framework: Check it out! How To Your first NHibernate based application Get unique results from joined queries Lazy loading - eager loading Configure Log4Net for use with NHibernate Mapping a view and Schema Export Workaround Lets us...