How to create a simple Parent-Child relationship?

How to create a simple Parent-Child relationship?

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


superkuton posted on Saturday, June 27, 2009

hello!

I am new to CSLA.NET. Right now, I am creating a simple application to learn how to use the framework.

I have been trying to follow the example in the Rocky books, but i find it difficult to follow the ProjectTracker objects.

I have a Person.Profile table (PK PersonID) that has the child table Person.ContactAddress (AddressID, PersonID, Street, Barangay, MunicipalityID, POBoxNo).

Can someone show me a simple object to implement the parent-child relationship between the Person.Profile and the Person.ContactAddress?

RockfordLhotka replied on Sunday, June 28, 2009

You should look in the Samples downloads - in particular the InventoryDemo in the Silverlight Samples download has some simpler and more direct examples.

Also, you may consider buying the Business Object Types video, which includes some very focused demos showing how to create most common business object types and also explains how and why the objects are constructed the way they are.

Copyright (c) Marimer LLC