Manager Templates Save Method

Posts   
 
    
exp2000
User
Posts: 68
Joined: 13-Apr-2006
# Posted on: 07-Sep-2006 21:58:10   

In manager templates type safe 'Save' methods are not generated, so you can have any manager save any entity type. This allows for developers to subvert any rules that you specify for a save method on specific Manager. For example in one of the manager, I check that specific entities are present before presisting entity to a db. However, one could use just different Manager and bypass this check. Any thoughts on this?

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

I'm not familiar with the templates (they're a 3rd party contribution and the original author has moved on to other projects I believe) but if there is a facility to prevent rule circumvention and a lack of a set of methods offers rule circumvention, I think the methods should be added.

Frans Bouma | Lead developer LLBLGen Pro