Inheritance on views

Posts   
 
    
Horstmann
User
Posts: 4
Joined: 19-May-2008
# Posted on: 19-May-2008 17:12:58   

...maybe I just haven't found it in the docu, but...

Well, I would like to setup an inheritance hierarchy based on several views, rather than tables .

Everything works fine with the foreign key 1:1 relationship using a table as sub-type. But how do I tell my MSSQL2005 to setup a foreign key constraint on a view?

Or is there another way to tell LLBLGen that a view is meant to be a sub-type in a heirachy?

Any help would be appreciated.

Thank you.

Alles Gute.

goose avatar
goose
User
Posts: 392
Joined: 06-Aug-2007
# Posted on: 19-May-2008 19:05:54   

As far as I know, the inheritance features of LLBLGen Pro are limited to real tables only.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39873
Joined: 17-Aug-2003
# Posted on: 20-May-2008 09:14:14   
  • Map an entity onto the view
  • Specify in the designer a PK field (or fields) for the entity
  • define the relation (custom relation) in the designer.
  • create the hierarchy simple_smile
Frans Bouma | Lead developer LLBLGen Pro
Horstmann
User
Posts: 4
Joined: 19-May-2008
# Posted on: 20-May-2008 11:48:02   

simple_smile

Yepp, this works. Thanks a lot.

Alles Gute