Best Practice for Inheritance?

Posts   
 
    
dazedorconfused avatar
Posts: 89
Joined: 06-Apr-2006
# Posted on: 11-Mar-2008 15:59:32   

I am struggling with a design issue. I am working on a new project, a server application that receives a request and then renders CAD drawings from engineering specs stored in a database. I am designing a SQL 2005 database that will be the management database for the new application.

I have the concept of a drawing... a SubmittalDrawing to be specfic, which has a collection of revisions. Then, I need to extend both objects and have specific implementations... ProjectDrawing, QuoteDrawing, OrderDrawing, etc. Should I define the one to many relationship on what will ultimately be the base classes... or on the specific classes... or both?

SubmittalDrawing

UID PreparedBy Voltage Drawing

SubmittalDrawingRevision

UID SubmittalDrawingUID RevisedBy RevisedDate RevisionNumber Drawing

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 14-Mar-2008 23:14:52   

Should All the childs have such relation? If so, go on defining the relation on the superclass.

David Elizondo | LLBLGen Support Team