Managers templates now also for LLBLGen Pro v2.0 / .NET 2.0

Posts   
 
    
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 26-Sep-2006 11:40:55   

Thanks to the hard work of Sam Critchley, the managers templates are now ported to LLBLGen Pro v2.0 and .NET 2.0.

They're checked into the repository at:

svn://www.sd.nl/LLBLGenPro/Templates/ManagersTemplates2.0/Trunk

A .zip file is uploaded to the customer area's 3rd party section as well.

Frans Bouma | Lead developer LLBLGen Pro
swallace
User
Posts: 648
Joined: 18-Aug-2003
# Posted on: 01-Oct-2006 18:50:16   

Anyone having trouble running these in 'Generate'? I'm getting this message:


       Task group Create Manager Classes
            Task PrefectPathElementCollectionGenerator
                    Could not find template 'PrefectPathElementCollectionTemplate'. It is not defined in any of the bindings specified.
            Task ManagerBaseGenerator
                    Could not find template 'ManagerBaseTemplate'. It is not defined in any of the bindings specified.
            Task EntityManagerBaseGenerator
                    Could not find template 'EntityManagerTemplate'. It is not defined in any of the bindings specified.
            Task EntityManagerBaseGenerator
                    Could not find template 'EntityManagerBaseTemplate'. It is not defined in any of the bindings specified.


I've placed all the files in the right places (yes, I'm certain...) and I've even changed the 'filename' portion in the Manager.Template.templatebindings file to hardcode the actual location of the four files with the full path.

The 'Create Manager Tasks' items appear correctly in the 'Task Queue to Execute' tab of the generate dialog, and the task information looks right to me (for as much as I know). I moved the task down to make it perform last. There are no other tasks beyond the ones that are the default for a C# project.

I'm stumped. Anyone else having success?

Jessynoo avatar
Jessynoo
Support Team
Posts: 296
Joined: 19-Aug-2004
# Posted on: 02-Oct-2006 20:44:19   

Hi,

it suggests that the generator does not find the Manager.Template.templatebindings file.

Did you place that file with the others at the root of the Templates folder? And did you make sure in the generation form to set the bindings to that file in the corresponding (2nd) tab?

swallace
User
Posts: 648
Joined: 18-Aug-2003
# Posted on: 04-Oct-2006 00:25:23   

Jessynoo wrote:

Hi,

it suggests that the generator does not find the Manager.Template.templatebindings file.

Did you place that file with the others at the root of the Templates folder? And did you make sure in the generation form to set the bindings to that file in the corresponding (2nd) tab?

Sure enough. The Manager.Template.templatebindings file is in the Templates folder, and the Gallery folder is in that same Templates folder.

Under 'Task Queue to Execute' tab on the Generate dialog, I have added (and was able to add) the Manager Templates tasks. I added all six, three from Create Directories and three from Create Manager Classes. I then moved the Manager Templates tree item to the last task.

But no joy. Clearly the designer sees things. As I mentioned, I modified the Manager.Template.templatebindings file to provide a full path to the associated files in Gallery.

edit:

Oops, didn't notice the second tab. Sure enough, the directories shown for the bindings files are not correct. Correcting in the file...

edit number two:

Ok, that fixed it, now let me remove the full path (d:\blahblahblah...) and return it to the default...

edit number three:

Ok, works now. Don't ask my why. Thanks for your help!

bentos
User
Posts: 144
Joined: 12-Jul-2006
# Posted on: 18-Sep-2008 15:33:50   

Hi,

Is there any chance you ca attach/add the zip to the "extras" section or link to it (if I am in the wrong place) w/o the need for subversion install so I can look at the managers templates

Thanks, Matt

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 18-Sep-2008 20:39:34   

They are, in the v2.0 menu -> 3rd party. The reason they're not in the v2.5/6 sections is because they haven't been ported to v2.5/6.

Frans Bouma | Lead developer LLBLGen Pro