Mapping a 1:n relation automatically creates a FK column, in below example, a column Author_id in the Book table. But how do I make this value available as a property of the Book entity? If I create a property int AuthorID, is it possible to make NHibernate use this property as the foreign key, so I can access it programatically?
public class Author
{
public IList<Book> Books { get; set; }
}
//AuthorMap:
HasMany(x => x.Books);