Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
HookPreSaveEntity code not executing
Message
De
19/01/2009 13:29:44
 
 
À
19/01/2009 12:13:19
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01374504
Message ID:
01375160
Vues:
9
Good afternoon,
It's really strange...
whenever I make a change to a field in the table, the change is sent to the database however the update to the edtdtime field (as done in my hookPreSave method) is not happening.
any thoughts on the below code would be appreciated.

thanks
rick
protected override bool HookPreSave(DataTable dt)
{
foreach (DataRow dr in dt.GetChanges().Rows)
{
dr["edtdtime"] = DateTime.Now;

}
return true;
}
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform