criteria - Is there an NHibernate criterion which does actually nothing? -


I am looking for a NHibernate criterion which adds no restrictions for the criteria. The reason for this is that I have a method that converts some input parameters into a criterion that is added to the criteria. The constellation of the input parameter is where no restriction has been applied. So I want to return some types of dummy criteria.

What is something like this in NHibernate?

Best regards,
Oliver Hanapi

Can do something like. ISNTONAL ("ID") if 'ID' is the primary key (and therefore can never be blank). Anyone who evaluates a reasonable restriction can be used depending on your needs.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -