Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
HookPreSaveEntity code not executing
Message
From
19/01/2009 15:07:18
 
 
To
19/01/2009 12:13:19
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01374504
Message ID:
01375220
Views:
9
Good afternoon,
I found that I also needed to copy the changes back into the original dt datatable. Here's the code.
protected override bool HookPreSave(DataTable dt)
{
System.Data.DataTable dtchanged = dt.GetChanges();
foreach (DataRow dr in dtchanged.Rows)
{
dr["EdtDTime"] = DateTime.Now;
}
dt.Merge(dtchanged);
return true;
}

rick
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform