Criteria Class

Criteria Class

Old forum URL:

st3fanus posted on Monday, January 11, 2010


I want to share about criteria class..

What is the significant of criteria class must be inherit from CriteriaBase,,??
My Understanding now is criteria class must be [serializable] for move on Application Server..which is mean I can create anything class as long as that class Serializable to become a Criteria Class

Is there any another reason that i should know about the usage of  Inherit from CriteriaBase..

Thanks a lot All of Unknown friends :)


JonnyBee replied on Monday, January 11, 2010


CriteriaBase allows you to create "managed properties" on criteria objects and thus will not require extra code for serialization in Silverlight.

st3fanus replied on Wednesday, January 13, 2010

Thanks JonnyBee...

Although I've never try about silverlight but i appreciate for your respond, it's given me one of understanding...

So.. Am i right if I still use criteria base on winform ,there is no another benefit compare with custom class that Serializabled..??

Thank You


JonnyBee replied on Wednesday, January 13, 2010


Yes, you are right -  only need to be a serializable object.

rxelizondo replied on Wednesday, January 13, 2010


You really need to check out the info in the book. Page 202 "Criteria Objects".

There you will find a lot more insight on the different ways to create a criteria object as well as the pros and cons for each of the different techniques.

Copyright (c) Marimer LLC