Any news on Manager Template for v2?

Posts   
 
    
worldspawn avatar
worldspawn
User
Posts: 321
Joined: 26-Aug-2006
# Posted on: 18-Sep-2006 02:09:36   

Hi,

I thought i'd rattle the cage a bit and see if there was any progress on Manager templates for v2 since the last post on 31st august?

Thanks

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39786
Joined: 17-Aug-2003
# Posted on: 18-Sep-2006 09:35:22   

Not that I'm aware of, as I haven't spend time on them. As more people ask us when the templates are migrated to v2.0, I've planned to spend time on it this week.

Frans Bouma | Lead developer LLBLGen Pro
worldspawn avatar
worldspawn
User
Posts: 321
Joined: 26-Aug-2006
# Posted on: 19-Sep-2006 03:06:04   

Ok that's good news.

I am trying to connect to the svn repository using tortoise svn. It's making outgoing connection attempts over port 3690. The only outgoing access i have is 80 and 443 (http/ssl), and our security guy would sooner lie down in traffic than open another port. I was wondering if you could (somehow) make it accessible using either http or ssl? Pretty please? smile

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39786
Joined: 17-Aug-2003
# Posted on: 19-Sep-2006 09:34:50   

No sorry, I can't do that, as http access requires WebDAV which is leaky on windows and I won't use that.

When I've ported it over (I don't know when that's done, as I'm not familiar with the templates myself) I'll post a .zip on the customer area.

Frans Bouma | Lead developer LLBLGen Pro
worldspawn avatar
worldspawn
User
Posts: 321
Joined: 26-Aug-2006
# Posted on: 20-Sep-2006 03:02:40   

Ok fair enough.

I've started doin some porting myself. It's going well, mostly I'm just changing references to EntityCollection to use EntityCollection<Type>. I "think" i'm nearly done. Last build error I'm getting is

The name 'SortClauseFactory' does not exist in the current context.

This appears to be because SortClauseFactory is no longer generated by the Adapter template. Is there an alternative?

worldspawn avatar
worldspawn
User
Posts: 321
Joined: 26-Aug-2006
# Posted on: 20-Sep-2006 03:45:39   

I've grabbed the sortclause factory template from the v1 adapter template and put in my v2 manager template... and it works! It gets stuff from the database and puts stuff back in as expected. The templatebindings file and .tasks file are done aswell smile

The only caveat is in the SortClauseFactory.cs you'll need to modify the namespace path to the correct namespace of your dataaccess layer. This is because the sortfactory template is written in TDL and I would have had to re-write it in c# so it can use the CoreNameSpace property that appears in the other manager templates.

Besides that very small annoyance (which someone else is welcome to fix) everything (seems) to be working just like ol' v1 manager templates.

If Otis (or anyone else) wants it post a request for it with details on how I'd get it too you.

worldspawn avatar
worldspawn
User
Posts: 321
Joined: 26-Aug-2006
# Posted on: 20-Sep-2006 04:12:54   

I spoke too soon. The hopelessly confused Visual studio was building using the old ORMSupportClasses library. I had to put a runtime policy into the web.config to force to use the 2.0 version.

Development continues...

worldspawn avatar
worldspawn
User
Posts: 321
Joined: 26-Aug-2006
# Posted on: 20-Sep-2006 04:52:13   

Ok now it definately works. I had to add PredicateFactory from the v1 Adapter in too, mostly to support my existing code more than anything else.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39786
Joined: 17-Aug-2003
# Posted on: 20-Sep-2006 09:54:45   

SortClauseFactory and PredicateFactory are available in v2, you just have to add the tasks, but they're deprecated, you shouldn't use them anymore. You should use the operator overloading approach, like IPredicate filter = CustomerFields.CompanyName == "Foo Inc.";

Great work! smile If you want I can take it from here and put the dots on the I's and check in the code to the svn repository.

Frans Bouma | Lead developer LLBLGen Pro
worldspawn avatar
worldspawn
User
Posts: 321
Joined: 26-Aug-2006
# Posted on: 20-Sep-2006 16:42:36   

Yeah I finally noticed they were there in the task list just greyed out. Should I email it to support at llblgen.com?

I'm familar with operator overloading. Are the overloads there or do I need to implement them myself? I cant' see in your example where I would implement them assuming CompanyName is of type string. Either way, I probably won't bother with it until we start a new project.

Anyways I'm going to bed, i'll zip it up and email it too you tomorrow at work. What GMT time are u? I'm +10.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39786
Joined: 17-Aug-2003
# Posted on: 20-Sep-2006 18:14:49   

Operators are overloaded in the entityfields already, so you can write simpler filters. Just email it to support AT llblgen.com, and I'll check it out. Thank you very much for the work you've put into this simple_smile .

We're at GMT+2 (The Hague, Netherlands)

Frans Bouma | Lead developer LLBLGen Pro
worldspawn avatar
worldspawn
User
Posts: 321
Joined: 26-Aug-2006
# Posted on: 21-Sep-2006 04:11:26   

Hi Otis,

I'm sick at home today (and the files are at work) so I can't get it to u today. Hopefully tomorrow.

It was a pleasure. Took only about 4 hours. We have a template that generates UI that is for 2.0 and we wanted to get it all in 2.0 so we could create a preset that generates the whole lot at once.

Anyway I'll email it to you tomorrow at about 10am (2am ur time).

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39786
Joined: 17-Aug-2003
# Posted on: 21-Sep-2006 10:01:22   

worldspawn wrote:

Hi Otis,

I'm sick at home today (and the files are at work) so I can't get it to u today. Hopefully tomorrow.

I'm sorry to hear that, get well soon! simple_smile

It was a pleasure. Took only about 4 hours. We have a template that generates UI that is for 2.0 and we wanted to get it all in 2.0 so we could create a preset that generates the whole lot at once.

Anyway I'll email it to you tomorrow at about 10am (2am ur time).

No rush, thanks for the work simple_smile

Frans Bouma | Lead developer LLBLGen Pro
worldspawn avatar
worldspawn
User
Posts: 321
Joined: 26-Aug-2006
# Posted on: 22-Sep-2006 00:59:13   

Ok I've sent it.

worldspawn avatar
worldspawn
User
Posts: 321
Joined: 26-Aug-2006
# Posted on: 22-Sep-2006 02:28:09   

Hi Otis,

I'm trying to create a preset that creates our UI, BL and DAL all in one hit. I'm having trouble controlling the namespaces though. The problem is Adapter just blurts out whatever is in the Rootnamespace.

I was wondering if you could add some functionality so you can specify the Rootnamespace to use for a taskGroup (dunno if taskGroup is the right word - i mean a node in the preset that contains other nodes) and save that rootnamespace information back into the project file (rather than the preset). This would give us users total control over namespaces.

Also is there someway to add new generator variables (like: [dbgenericSubFolder] or [dbspecificSubFolder])? Or is it just a hard coded list to support the adapter templates? If so could you add one like [rootnamespace]?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39786
Joined: 17-Aug-2003
# Posted on: 22-Sep-2006 15:08:31   

This has been requested a couple of times. It's on our todo list for the next upgrade (2.1) to add more flexibility for this.

Frans Bouma | Lead developer LLBLGen Pro