Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling Hook Methods
Message
De
26/02/2010 14:47:39
 
 
À
26/02/2010 14:35:33
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01451309
Message ID:
01451318
Vues:
49
>>Hi,
>>
>>I want my BO to clear out some of its values depending on a flag that is set by the user. I guess I need to do this in a HookPreSave() method so I tried the following:
>>
>>In my client.partial.cs I added this (Client is my BO)
>>
>>
        protected virtual bool HookPreSaveEntity(EntityType currentEntity)
>>        {
>>
>>        }
>>
>>but I get an error:
>>
>>'SamaanSystems.IAS.Business.Client.HookPreSaveEntity(EntityType)': not all code paths return a value
>>
>>What does this mean and how do I achieve my goal?
>
>Oh, also your method should be an override method as the method already exists.
>
>
>protected override bool HookPreSaveEntity(ClientEntity entity)
>{
>    return true;
>}
>
>Tim

Thanks Tim!
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform