[nhusers] Mapping Many-To-One

2016-02-12 Thread Xaxa Urtiz
Hello, I have these object: public class Entity { public virtual int Id { get; set; } public virtual Lookup Type { get; set; } public virtual string Name { get; set; } } public class Lookup { public virtual int Id { get; set; }

[nhusers] Mapping many-to-one with join (or something similar)

2010-10-27 Thread Christian Hansen
Hello there, I'm experiment with NHibernate which so far has been a pleasant experience. However, today I hit a wall. Easiest way to explain problem is by using an example, so thats what I will do. I have a domain object called 'Machine' which has some properties like this. Machine Name Weight