New Posts New Posts RSS Feed: Implementing Funhouse-Style BaseEntity Inheritance in Your Application
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Implementing Funhouse-Style BaseEntity Inheritance in Your Application

 Post Reply Post Reply
Author
IdeaBlade View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 30-May-2007
Location: United States
Posts: 353
Post Options Post Options   Quote IdeaBlade Quote  Post ReplyReply Direct Link To This Post Topic: Implementing Funhouse-Style BaseEntity Inheritance in Your Application
    Posted: 06-Jun-2007 at 5:16pm

Answer:

1.        You'll create (or copy) CommonEntity.cs manually.  You'll create BaseEntity with the OM tool.  You'll manually change the inheritance to inherit from CommonEntity.

2.        I am not sure about this one.

3.        A CommonEntityDataRow.cs is not required.  We just used it to show that it could be done.

Here is some additional information for you on the questions that you asked in September.  One of the engineers on our team, Jason Kwan, wrote a demo app that shows how to use Abstract class BaseEntity and a separate CommonEntity class that BaseEntity inherits from.  So CommonEntity can provide common functions that all inherited objects can use to perform common task.  In this case, we simply modified Model’s business object id to a different Common ID.  Similar functionality can also be provided through the Abstract Class BaseEntity – BaseID.

Back to Top
Customer View Drop Down
Senior Member
Senior Member
Avatar
User Submitted Questions to Support

Joined: 30-May-2007
Location: United States
Posts: 260
Post Options Post Options   Quote Customer Quote  Post ReplyReply Direct Link To This Post Posted: 06-Jun-2007 at 5:14pm

Question:

Questions about Funhouse:

1.        Do I have to create then CommonEntity.cs manually? and then create BaseEntity.cs with the tool and manually inherit from CommonEntity?

2.        Will be the tool smart enough to preserve my changes (inheritance ) the next time when I generate the clases again?

3.        How do  I create CommonEntityDataRow.cs ? manually



Edited by Customer - 06-Jun-2007 at 5:15pm
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down