Changes in templates have no effect

Posts   
 
    
Ian avatar
Ian
User
Posts: 511
Joined: 01-Apr-2005
# Posted on: 13-Apr-2005 01:16:41   

Hi there,

I added the following to 'CSharpTemplateSet.config'

<templateBinding templateID="Custom_EntityTemplate" templateFilename="......\SharedTemplates\C#\customEntity.template" />

and the mapping appears in the 'Template Bindings Viewer'.

I put 'HELLO' in the template and it didn't appear in the resulting entity classes.

I also tried making changes directly in 'entity.template' and it had no effect on the output.

Why isn't there a template where the Entity inherits from EntityBase2? Is the '2' added with a replace?

Your help is much appreciated.

Ian.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39788
Joined: 17-Aug-2003
# Posted on: 13-Apr-2005 09:04:49   

That's the templateID for selfservicing entities. If you're using adapter, you have to use a different template ID. Which generator configuration are you using?

Frans Bouma | Lead developer LLBLGen Pro
Ian avatar
Ian
User
Posts: 511
Joined: 01-Apr-2005
# Posted on: 13-Apr-2005 13:35:31   

I'm using Adapter for VS.net 2003 with C# for SQL Server 2000.

By the way, great product! Last night I managed to insert a task for merging new files such that custom user code was retained in a incredibly short amount of time.

Just goes to show the flexibility and robustness of strongly typed OO programming.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39788
Joined: 17-Aug-2003
# Posted on: 13-Apr-2005 17:04:21   

Ian wrote:

I'm using Adapter for VS.net 2003 with C# for SQL Server 2000.

Ok, then you have to bind to Custom_EntityAdapterTemplate instead simple_smile

By the way, great product! Last night I managed to insert a task for merging new files such that custom user code was retained in a incredibly short amount of time.

Just goes to show the flexibility and robustness of strongly typed OO programming.

Thanks! smile

Frans Bouma | Lead developer LLBLGen Pro