Custom templates best practise

Posts   
 
    
mihies avatar
mihies
User
Posts: 800
Joined: 29-Jan-2006
# Posted on: 09-Jul-2006 01:46:11   

I just added my custom template (ConcurrencyFilterFactory of course :-)) to a project and I want just check whether I am doing it properly: 1. placed .template file in AdditionalTemplates folder 2. modifed SD.TemplateBindings.SharedTemplates.NET20.templatebindings (included new templateID) 3. modifed preset through designer (Add Task of ConsumerTDLTemplate)

Is step 2. proper approach? Instead of 3. I could generate my own task I guess.

Thanks,

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

You should create a new templatebindings file, and also place that in AdditionalTemplates folder. This way you don't have to modify any shipped files, you can just create your own simple_smile .

Frans Bouma | Lead developer LLBLGen Pro
LukeO
User
Posts: 58
Joined: 23-Jul-2007
# Posted on: 30-Jan-2008 22:00:47   

I'm doing the same thing. I've made a templatebindings file and placed it into the same directory as all the other binding files are directed in the Tutorial.

When I run LLBLGEN I see the binding file when I select Generate. So far so good.

What is the next step to get this template to run ALONG with the ones listed in SD.Presets.Adapter.TwoClasses2005 (nothing I did is being listed when I select Add Tasks also). I think I might be missing a step or two.

Thanks, -Luke

Otis wrote:

You should create a new templatebindings file, and also place that in AdditionalTemplates folder. This way you don't have to modify any shipped files, you can just create your own simple_smile .

LukeO
User
Posts: 58
Joined: 23-Jul-2007
# Posted on: 31-Jan-2008 00:57:17   

I did finally figure it out by modifying (or more exactly copying and then modifying) a new preset. Is that the correct way to do this? I imagine I would need to modify any updated preset from LLBLGen. Correct?

-Luke

LukeO wrote:

I'm doing the same thing. I've made a templatebindings file and placed it into the same directory as all the other binding files are directed in the Tutorial.

When I run LLBLGEN I see the binding file when I select Generate. So far so good.

What is the next step to get this template to run ALONG with the ones listed in SD.Presets.Adapter.TwoClasses2005 (nothing I did is being listed when I select Add Tasks also). I think I might be missing a step or two.

Thanks, -Luke

Otis wrote:

You should create a new templatebindings file, and also place that in AdditionalTemplates folder. This way you don't have to modify any shipped files, you can just create your own simple_smile .

Walaa avatar
Walaa
Support Team
Posts: 14987
Joined: 21-Aug-2005
# Posted on: 31-Jan-2008 10:33:59   

Modifying a copied preset, you got it right.

LukeO
User
Posts: 58
Joined: 23-Jul-2007
# Posted on: 31-Jan-2008 17:59:27   

Thanks. I'm realizing that this stuff really isn't that hard once you know it.

-Luke

Walaa wrote:

Modifying a copied preset, you got it right.