AuthorizerBase parameters

Posts   
 
    
JimHugh
User
Posts: 191
Joined: 16-Nov-2005
# Posted on: 22-Aug-2007 22:56:24   

Why does CanBatchDeleteEntitiesDirectly take a System.Type and the rest of the Can* methods take an IEntityCore instance?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39749
Joined: 17-Aug-2003
# Posted on: 22-Aug-2007 22:58:49   

Because in adapter for example, you specify only a type or a name and a filter, not an entity. So the action is bound to a type, not to a real entity instance, as that's not useful anyway: there's no entity data to check as the action is started without an entity instance simple_smile

Frans Bouma | Lead developer LLBLGen Pro
JimHugh
User
Posts: 191
Joined: 16-Nov-2005
# Posted on: 22-Aug-2007 23:07:49   

blush Just seemed to be inconsistent, but now I see it!

Thanks, sorry for wasting your time, still trying to absorb the rest of the changes!