Compilation Issues with Manager Templates and Sub Entities

Posts   
 
    
abhi
User
Posts: 2
Joined: 26-Mar-2006
# Posted on: 26-Mar-2006 04:16:25   

I have 2 tables auto and car. The pk in car is the on generator by auto. Therefore, I have car and a subtype of auto. I can generate the adapter templates for vs 2005 C# just fine. However, the generated managers (using manager templates) do no respect the subentity relationship and instead generate managers treating this as a 1:1 relationship. What should I do?

Thanks in advance abhi

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39786
Joined: 17-Aug-2003
# Posted on: 26-Mar-2006 13:01:33   

Hmm. that can indeed be a problem. I think the manager templates aren't updated for sub/supertype entities. (they're a third party effort). I'll have a look at the templates to see if they can be updated easily, though I can't promise anything within a 1-2 day range, as I'm personally not familiar with the inner workings of the templates.

Frans Bouma | Lead developer LLBLGen Pro
abhi
User
Posts: 2
Joined: 26-Mar-2006
# Posted on: 07-Apr-2006 20:59:01   

Hi Otis I was wondering you had chance to look at the problem. Any help would be greatly appreciated

Thanks Abhi

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39786
Joined: 17-Aug-2003
# Posted on: 07-Apr-2006 22:01:57   

Not yet, I was planning to have a look at it this weekend

Frans Bouma | Lead developer LLBLGen Pro
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39786
Joined: 17-Aug-2003
# Posted on: 08-Apr-2006 17:07:12   

I've updated the normal manager templates, not the add-ons. You should re-export the templates (the one that's changed is the EntityManagerBase template). Here it compiles with a project with all hierarchy types and abstract entities.

Frans Bouma | Lead developer LLBLGen Pro