Ok, I see. As I can't change the design of the tables, whats the best
way to handle it?

In my understanding, I map the foreginkey like a normal property and
add some custom code to access the MachineTypes data;

In class Machines:

        public MachineType Type {
            get {
                return (from m in session.Query<MachineType>()
                        where (m.Mandator == this.Mandator) && (m.Art
== this.Type)
                        select m).First();
            }
        }

Which gives me easy access to the Type Data, but for querys affecting
machine and machinetype I've to do it in the old sql manner...



-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
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