Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Open
avolgin opened this Issue · 0 comments

1 participant

@avolgin

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
Something went wrong with that request. Please try again.