I have an old table with the following structure:
UserId GUID
SelectionId GUID
DateSelected DATETIME
It would be easy to map it to a single class, but I would like to map it to two classes since I'm always queuing this table by the UserId
public class User
{
Guid UserId {get;set;}
IEnumerable<UserSelection> UserSelection {get;set;}
}
public class UserSelection
{
public Guid SelectionId { get; set;}
public DateTime DateSelected { get; set;}
}
I this possible in NHibernate?