how to use emitType generic

Posts   
 
    
dalikdik
User
Posts: 9
Joined: 10-Nov-2008
# Posted on: 15-Nov-2008 04:52:48   

How do i use the parameter emitType using generic? I tried using generic because i want to specify a single entity but it gives me an error object not reference? can anybody provide me a sample thanx.

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 16-Nov-2008 20:08:28   

When use **generic **as emitType, the code emitter will simply use the specified template and the current project and generate code. The statements in the template are executed for the project, no elements inside the project are used as a set to execute the template multiple times for multiple files. A single file is the result. [elementname] is ignored in filenameFormat.

So, if you want to use some template on just-one entity, one thing you can use is Create participating object subset....

Are you designing your own template or just using the shipped ones?

David Elizondo | LLBLGen Support Team