Extending UOW

Posts   
 
    
omar avatar
omar
User
Posts: 569
Joined: 15-Oct-2004
# Posted on: 01-Dec-2005 13:42:11   

I wanted to extend UnitOfWork2 class to override both versions of Commit but found that only one of the Commit methods is overridable. Is there a problem in exposing both Commit methods as overridable (at least for inheriting classes)

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 01-Dec-2005 14:12:35   

I guess that the already overridable method is in more generalized form, so you might use it instead of the other one.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 01-Dec-2005 14:37:42   

the non-overridable version calls the overridable version. simple_smile

Frans Bouma | Lead developer LLBLGen Pro
Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 01-Dec-2005 14:40:35   

I thought so also, and passing false as the second parameter.

omar avatar
omar
User
Posts: 569
Joined: 15-Oct-2004
# Posted on: 01-Dec-2005 19:10:00   

Thanks guys... simple_smile