Creating an Enitity Interface

Posts   
 
    
tsmith
User
Posts: 38
Joined: 17-Apr-2006
# Posted on: 06-Nov-2006 16:11:45   

I have added an interface to all our generated classes but noticed that they are not generated by LLBLGen. Is there a Template/Addon available to create these interfaces. If not can I get a lead on how to create one. I looking mainly to create the interface using only the Entity Fields.

Thanks

Aurelien avatar
Aurelien
Support Team
Posts: 162
Joined: 28-Jun-2006
# Posted on: 06-Nov-2006 17:06:29   

Hi,

You must use template to generate the code for your interface. So you should get the SDK and start writing a simple template.

tsmith
User
Posts: 38
Joined: 17-Apr-2006
# Posted on: 06-Nov-2006 20:05:27   

I have a simple template and it appears in the Template Bindings Tab under Generate, but when I start the generator the new files are not created.

What I need is for the new Interface classes to be generated into another assembly and add the LLBLGen Assembly to add a reference to this new assembly.

It appears as if I can modify one of the project templates to get the reference into the LLBLGen assembly.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39927
Joined: 17-Aug-2003
# Posted on: 07-Nov-2006 11:45:02   

tsmith wrote:

I have a simple template and it appears in the Template Bindings Tab under Generate, but when I start the generator the new files are not created.

Did you add a task to generate files?

What I need is for the new Interface classes to be generated into another assembly and add the LLBLGen Assembly to add a reference to this new assembly.

It appears as if I can modify one of the project templates to get the reference into the LLBLGen assembly.

Well, if you have setup a task and the task is executed (i.e. enabled) and the files are created but empty or contain the wrong output, it's better to post the template here (if it's not 1000's of lines wink ) so we can have a look. But first check if your task is executed (with the generator log that's shown afterwards)

Frans Bouma | Lead developer LLBLGen Pro
tsmith
User
Posts: 38
Joined: 17-Apr-2006
# Posted on: 09-Nov-2006 16:51:56   

Oops, the task performer was not finished.