Hi
I have two tables which looks something like this
Table Queue
int ID;
string Name;
int MessageID;
string To
string From
string Topic
string Email
Table Message
int ID
int MessageType
This is a rather simplified version, but what we did in the classes was to create 1 class named
class Queue
int ID
string Name
Message message
And then we have an abstract message with either types of message.
class abstract Message()
class SMSMessage : Message
string ToMobile
string FromMobile
string Message
class EmailMessage
string ToEmail
string FromEmail
string Topic
string Email
However now my problem is figuring out how to map this with fluent Nhibernate. How would i do this ?