On CancelEdit?

Posts   
 
    
BertS
User
Posts: 89
Joined: 28-Jul-2005
# Posted on: 09-Sep-2005 14:53:29   

Using SS, two classes. I want to add some custom logic when CancelEdit is called in the Entity-class (not in EntityBase). I can't override the method, becaused it's flagged NotOverridable.

Any ideas?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 09-Sep-2005 16:46:17   

I've added these (OnBeginEdit(), OnEndEdit() and OnCancelEdit()) to the entitybase class (protected virtual) in 1.0.2005.1 (which hopefully goes in beta on monday)

Frans Bouma | Lead developer LLBLGen Pro
BertS
User
Posts: 89
Joined: 28-Jul-2005
# Posted on: 09-Sep-2005 17:42:36   

ok, but what's the best way to solve this in the current version? (I'm not sure to upgrade this project to 2005)

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 09-Sep-2005 17:49:34   

BertS wrote:

ok, but what's the best way to solve this in the current version? (I'm not sure to upgrade this project to 2005)

v1.0.2005.1 is for .NET 1.x, not for .NET 2.0. It will contain a .NET 2.0 native build of the code, but no .NET 2.0 code, that's v2.0 of llblgen pro which will be released hopefully at the end of 2005.

and to answer your question: at the moment that's not possible, CancelEdit is not overridable, so you're out of luck I'm afraid.

Frans Bouma | Lead developer LLBLGen Pro
BertS
User
Posts: 89
Joined: 28-Jul-2005
# Posted on: 09-Sep-2005 19:02:25   

Otis wrote:

BertS wrote:

ok, but what's the best way to solve this in the current version? (I'm not sure to upgrade this project to 2005)

v1.0.2005.1 is for .NET 1.x, not for .NET 2.0. It will contain a .NET 2.0 native build of the code, but no .NET 2.0 code, that's v2.0 of llblgen pro which will be released hopefully at the end of 2005.

I know, but the project I'm working on know will be released very soon, and that might be before the 'RTM' of v1.0.2005.1

and to answer your question: at the moment that's not possible, CancelEdit is not overridable, so you're out of luck I'm afraid.

Ok, next time better wink