Hi,
can anyone point in the right direction for examples on doing
subclassing? Im struggling to find anything.
At least I think I need subclassing, I have the following three
classes:

public abstract class EmployeeBase
{
  public virtual int id {get; set;}
  public virtual string Name {get; set;}
}

public class FullTimeEmployee: EmployeeBase
{
  public virtual double MonthlySalary {get; set;}
}

public class PartTimeEmployee: EmployeeBase
{
  public virtual double HourlyRate {get; set;}
  public virtual double HoursPerWeek {get; set;}
}

>From this I expect to have 3 tables, is that not correct? Do I still
need to inherit from the Base class?
Also, in my mapping class, I only seem to have the following method:
DiscriminateSubClassesOnColumn
So I'm alittle confused.

Any help gratefully appreciated.


Andy
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to