Persist a Predicate Expression and Sort Expression

Posts   
 
    
Bobio
User
Posts: 6
Joined: 28-Sep-2004
# Posted on: 12-Apr-2005 19:46:56   

Hi,

Can anyone recommend a way to persist Predicate Expressions and Sort Expressions? confused

I was thinking about .Net serialization, but the classes do not implement ISerializable.

Is this something that has been previously requested?

Thanks

Found that the classses are serializable. They implement the Serializable attribute. I could not see this in the Visual Studio object browser. Lutz Reoder's .Net Reflector did display the custom attributes if selected in the options. flushed

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 13-Apr-2005 09:53:14   

Yes they're serializable simple_smile . You could also check the reference manual, available in the llblgen pro folder, it was updated recently to include attributes as well simple_smile

Keep in mind though that serializing/deserializing can be slower than re-building the predicates from scratch. I.o.w.: instead of serializing/deserializing them, you could also write a method which produces the predicates for you.

Frans Bouma | Lead developer LLBLGen Pro