Hello nhusers,

I would like to know the syntax used to evaluate an expression from a 
referenced table.

Ie:

User:
UserId

Watcher
UserId
MessageId

Message
MessageId
Created

            return Session.CreateCriteria<Watcher>()
                .Add(Expression.Eq("UserId", userId))
                .Add(Expression.Gt("Message.Created", DateTime.now) <--- 
Don't know how to reference the message and get the created column.
                .List<Watcher>();

Googling hasn't given me any example syntax so I thought I would ask in 
here.

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/nhusers/-/dvxEMXGHB_sJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to