Template config File in version 2.0

Posts   
 
    
Mika
User
Posts: 14
Joined: 08-Mar-2006
# Posted on: 07-Jul-2006 09:19:37   

Hi,

I'm trying to find the equivalent file of the C# template set for SqlServer in the version 2.0. I'm a little bit confused with the new file organization confused I have found most of them but not this one. In fact, I would like to add customs templates but I'm getting errors like :

Could not find template 'SD_DerivedEntityAdapterTemplate2'. It is not defined in the templatebindings or is empty.

In the previous version, but where I can find that in the new one ?

Thank's

Mika

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39786
Joined: 17-Aug-2003
# Posted on: 07-Jul-2006 09:21:02   

Please read the new SDK documentation contained in the SDK for v2.

Frans Bouma | Lead developer LLBLGen Pro
Mika
User
Posts: 14
Joined: 08-Mar-2006
# Posted on: 07-Jul-2006 10:09:24   

Hi Frans,

I'm testing the demo version 2.0 before upgrading, that's why i can't find it. That's only or registred users I guess, I'm right ?

Sorry if I ask stupid question confused

Mika

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39786
Joined: 17-Aug-2003
# Posted on: 07-Jul-2006 10:30:52   

Mika wrote:

Hi Frans,

I'm testing the demo version 2.0 before upgrading, that's why i can't find it. That's only or registred users I guess, I'm right ?

Sorry if I ask stupid question confused

Mika

That's indeed for v2 customers.

The template system has been changed in the way it's stored: you had config files for tasks to run and template set files for the templatebindings.

You now have: - task files (.tasks) which contain the task definitions (stored in Tasks folder) - templatebindings files (.templatebindings, stored in Templates folder) which contain for a given platform per language the templateid bindings. You can have as many of these files as you like. - preset files (.preset files stored in Tasks folder) which define the tasks to run in which order and with which parameters.

So it's more flexible, you can define your own templatebindings file to overrule templateid bindings or define new ones, you can define your own tasks files to define new tasks and you can define your own preset files with the task order you need. Preset files are created in the generator config dialog in tab 3. In the Tasks\XSDs folder you'll find xsd files which give you intellisense in vs.net when you load them and a .preset, .tasks or .templatebindings file. Please check the existing files, it's actually pretty straight forward.

Frans Bouma | Lead developer LLBLGen Pro
Mika
User
Posts: 14
Joined: 08-Mar-2006
# Posted on: 07-Jul-2006 10:42:47   

Thank's a lot for the informations. With them, I have found the file i was searching "SD.TemplateBindings.SharedTemplates.NET20.templatebindings".

I think I'm not used to with the version 2.0, but with time it will be perfect wink

Thank's Frans for your quick answers wink Great support as usual, hehe.

Mika