given the following class definition:
public class Order {
public IProduct Product {get;set;}
}
I have this (fluent) mapping
I think what you're looking for is .References
Incidentally the same is true for .HasMany<>
This seems to do the same as <... class="Product" />
in xml
I wouldn't recommend mapping to the interface as it breaks the whole point of using one - you run into problems as soon as it starts implementing IStorable and NH can't cope with the multiple inheritance.