Manager template and My*Entity

Posts   
 
    
jeffryvu
User
Posts: 14
Joined: 22-Sep-2005
# Posted on: 28-Sep-2005 21:34:11   

Hi,

I'm using the templates to create Manager classes. They are great, save me a lot of work. simple_smile

I'm also using the AdapterExtendedEntity Templates.

Now, when I look at the *ManagerBase classes, the Fetch methods return the Entity classes and not the MyEntity classes.

How does that work? Should I change something in the templates? Or should I just cast the return values from Entity to MyEntity?

Thanks, Jeffry

Paul.Lewis
User
Posts: 147
Joined: 22-Aug-2005
# Posted on: 29-Sep-2005 04:22:00   

This question is also asked and answered in the follow thread:

http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=4274

jeffryvu
User
Posts: 14
Joined: 22-Sep-2005
# Posted on: 29-Sep-2005 09:18:28   

Paul.Lewis wrote:

This question is also asked and answered in the follow thread:

http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=4274

Sorry about that. I did ask that same question in that thread. However, it is not answered yet there.

And I thought that maybe the question should belong in this forum, that's why I re-asked the question here.

So maybe you could set this thread to "undone" again? simple_smile

Thanks, Jeffry

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39786
Joined: 17-Aug-2003
# Posted on: 03-Oct-2005 13:18:12   

The manager templates use the normal adapter templates. So if you want them to work with the extended entities, replace Entity with MyEntity in the templates and re-generate.

Frans Bouma | Lead developer LLBLGen Pro
jeffryvu
User
Posts: 14
Joined: 22-Sep-2005
# Posted on: 04-Oct-2005 11:46:56   

Should have known it was easy as that, thanks simple_smile