Templates and inheritance

Posts   
 
    
bjacobs
User
Posts: 73
Joined: 20-Aug-2008
# Posted on: 16-Feb-2014 06:44:04   

I am creating a custom template with the following:

public <[ If IsSubType ]>override <[SuperTypeName]><[ Else]>virtual <[CurrentEntityName]><[ EndIf]>Entity Foo()

My problem is that I have multiple levels of inheritance. I have OrganizationalUnit->Person->User. So for the code above when generating for a UserEntity it is generating override PersonEntity, but I need it to generate override OrganizationalUnitEntity.

Is what I want to do possible, and if so could you provide an example?

Also, sorry about the subject. I pasted the wrong text and was too quick to post and I don't see any way of changing it.

Thanks,

Billy Jacobs

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 17-Feb-2014 05:34:04   

Hi Billy. AFIAK, you will have to use .lpt template engine to do that. See the SDK Docs.

David Elizondo | LLBLGen Support Team