Multiple Root Tables with Single Child Table

Multiple Root Tables with Single Child Table

Old forum URL: forums.lhotka.net/forums/t/3633.aspx


jvnbkk posted on Tuesday, October 02, 2007

Hi ,

I am a newbie to CSLA.NET Framework.  Can anyone tell me how to create business objects for a table structure having multiple root tables having a single child 

As I am struggling to find solution for this for the last 5 days

Thanks

Kiran

JoeFallon1 replied on Tuesday, October 02, 2007

Your question is not clear enough to provide an answer.

Please provide more detail or some sample data.

Joe

jvnbkk replied on Wednesday, October 03, 2007

Hi Joe,

Thanks for your reply. 
I am a newbie to CSLA.NET framework.
How to have more than one parent table with a single child table in CSLA.NET

ex: Mother (motherid) table, Father (fatherid) table are parent tables that are linked to a
Child table (with motherid and fatherid as relationships)

Thank you once again

Kiran

Pero replied on Wednesday, October 03, 2007

Try creating first table Parents with parent type (Mother, Father) that contains all parents no mather is it father or mother, second table Childs containing all childs and third table ParentsChilds containing relations between parents and childs.
In that way you can link multiple parents to single child or multiple childs to single parent.

Copyright (c) Marimer LLC