Home
Help
Register
Log in

Search

 
   Active Threads  

You are here: Home > LLBLGen Pro > LLBLGen Pro Runtime Framework> HOW TO: any object can contain a certain entity
 

Pages: 1
LLBLGen Pro Runtime Framework
HOW TO: any object can contain a certain entity
Page:1/1 

  Print all messages in this thread  
Poster Message
Mountain
User



Location:
Florida
Joined on:
01-Apr-2005 05:05:51
Posted:
21 posts
# Posted on: 13-Apr-2005 19:47:29.  
In our application, we would like to have a generic entity (called FlexProperties) that can be used by (and contained within) a variety of other business objects.

In our normal approach, we would include ClassType and ClassID columns in the FlexProperty table, and then write code to associate the right FlexProperty object with the business entity object that contains it.

My question is how would we handle this with LLBL? We can't create a normal FK because the ClassID value could point to the PK in any of a number of other tables in the db.

Is a design like this compatible with LLBL, and if so, how should we approach it? Thanks!
  Top
Otis
LLBLGen Pro Team



Location:
The Hague, The Netherlands
Joined on:
17-Aug-2003 18:00:36
Posted:
38084 posts
# Posted on: 13-Apr-2005 21:05:54.  
Though one. you can't define the relation in the designer, though you can create an EntityRelation object in code, which then allows you to fetch data using that relation for example, is that what you're looking for?

Frans Bouma
LLBLGen Pro / ORM Profiler Lead Developer | Blog | Twitter
 
Top
Pages: 1  


Powered by HnD ©2002-2007 Solutions Design
HnD uses LLBLGen Pro

Version: 2.1.12172008 Final.