I want to map the Name
column from the Child
table into the Parent
object. How do you do this (using Fluent NHibernate)?
public class Parent
{
public int Key { get; set; }
public string ChildName { get; set; }
}
Tables
+--------------+ +------------------+
| Parent | | Child |
+--------------+ +------------------+
| Key INT | +--->| Key INT |
| ChildKey INT |-----+ | Name VARCHAR(20) |
+--------------+ +------------------+