Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determining which rows have changes and perform addition
Message
De
16/01/2009 12:17:39
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
À
16/01/2009 10:02:57
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:
01374356
Message ID:
01374399
Vues:
11
>Good morning listers,
>I have a windows form which is currently updating data correctly (well almost)
>Whenever I change a value on my grid (which is currently in an entitylist) I want to do some additional processing such as update the edited date.
>my question...
>1. how do I know which entities in my entitylist have changes?
>I am thinking that the most logical place to insert this code would be in the hookPreSaveEntity or hookPreSaveEntityList methods.
>thoughts and advice are appreciated.
>thanks
>rick

Hmm.. I have always tried to make all my updates at the time the use updated the single record. I was looking in the business object and entityList to see if there was a property you could look for. I would think there would be a method for GetChangedEntites or something, but didn't see it. If nothing else, you could certainly just use the underlying DataSet and standard code to get all the changed rows. Isn't there also an event that fires when the user changes a row you could update the date then?

I will think on this more as I am sure I am not thinking clear today.
Tim
Timothy Bryan
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform