Saving and restoring Predicate Expressions

Posts   
 
    
arschr
User
Posts: 893
Joined: 14-Dec-2003
# Posted on: 02-Jan-2006 17:17:07   

I would like to be able to serialize predicate expressions. For example: Each user is allowed to retrieve only records that "belong" to them. So I would like to save a compare range predicate expression when each user is set-up. In each query (that relates to the relevant table (customer in some cases, provider in others)), I want to insert their predicate expression to restrict the records the can see.

In other cases users will have built complicated predicate expressions, I would like to be able to store and retrive them for later use.

I found the section on XML serializing entities and entity collections, but havn't found anything on serializing predicate expressions, relation collections or resultset fields.

Paul.Lewis
User
Posts: 147
Joined: 22-Aug-2005
# Posted on: 03-Jan-2006 04:29:04   

arschr wrote:

I would like to be able to serialize predicate expressions. For example: Each user is allowed to retrieve only records that "belong" to them. So I would like to save a compare range predicate expression when each user is set-up. In each query (that relates to the relevant table (customer in some cases, provider in others)), I want to insert their predicate expression to restrict the records the can see.

In other cases users will have built complicated predicate expressions, I would like to be able to store and retrive them for later use.

I found the section on XML serializing entities and entity collections, but havn't found anything on serializing predicate expressions, relation collections or resultset fields.

These three threads will provide you the information you need to serialize your predicate expressions.

http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=4632&HighLight=1 http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=4381&HighLight=1 http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=464&HighLight=1

arschr
User
Posts: 893
Joined: 14-Dec-2003
# Posted on: 03-Jan-2006 12:35:50   

Thanks.

Are there plans to add To/From XML methods?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 03-Jan-2006 13:56:16   

arschr wrote:

Thanks.

Are there plans to add To/From XML methods?

Not at the moment.

Frans Bouma | Lead developer LLBLGen Pro
arschr
User
Posts: 893
Joined: 14-Dec-2003
# Posted on: 04-Jan-2006 14:12:56   

Thanks, I'll try the soap/binary formatter method.