LLBLGen 2.0 - Adapter TwoClass Scenario - MustInherit and ClassNames?

Posts   
 
    
mshe
User
Posts: 167
Joined: 02-Feb-2006
# Posted on: 26-Jul-2006 17:30:52   

Hi all,

Just wondering if this is possible with the two class scenario:

  1. Name all my base classes Base[EntityName]
  2. Add a MustInherit tag to all the base entities
  3. Create the subentitys as [EntityName] which inherits from Base[Entity]?

I find with the current twoclass scenario generator - the myBaseEntity naming scheme is a bit confusing to non-LLBLGen users - they don't know whether to use Entity or MyEntity.

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 26-Jul-2006 18:02:20   

You should be creating your own template set (copy from existing templates) And modify the entityUsingEntityBase.template & the entityBase.template

Look for "EntityBase".

(edit) Please follow the steps mentioned in the following thread to have your custom template set instead of modifying the original template set http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=6880

Posts: 1268
Joined: 10-Mar-2006
# Posted on: 26-Jul-2006 20:42:05   

You could use C# and end up with [EntityName]EntityBase (which is abstract - must inherit) and [EntityName].

wink

mshe
User
Posts: 167
Joined: 02-Feb-2006
# Posted on: 27-Jul-2006 07:47:22   

WayneBrantley wrote:

You could use C# and end up with [EntityName]EntityBase (which is abstract - must inherit) and [EntityName].

wink

Oh neat - I didn't realize the C# templates were so vastly different than the VB ones... simple_smile

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39927
Joined: 17-Aug-2003
# Posted on: 27-Jul-2006 11:19:02   

They're not simple_smile He referred to selfservicing wink

Frans Bouma | Lead developer LLBLGen Pro