Fluent NHibernate table-per-inheritance (TPH) mapping for multi class in the hierarchy #222

Open
avolgin opened this Issue May 17, 2013 · 0 comments

Projects

None yet

1 participant

@avolgin
avolgin commented May 17, 2013

Hello everyone,

I'm struggling with one Fluent NHibernate issue. I have following template of class structure in the my solution:

class OneClass
{
public virtual string OneProp {get; set;}
}

class TwoClass : OneClass
{
public virtual string TwoProp {get; set;}
}

class ThreeClass : TwoClass
{
public virtual string ThreeProp {get; set;}
}

And I want to use table-per-inheritance hierarchy strategy for my classes for contains all data in one table in a database.

How it possible to do via Fluent NHibernate?

I have posted this question to StackOverflow too:
http://stackoverflow.com/questions/16563530/fluent-nhibernate-table-per-inheritance-tph-mapping-for-multi-class-in-the-hie

Sincerely,
Volgin Alexey

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment