Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Non-updatable table
Message
De
23/05/2005 04:01:12
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01016568
Message ID:
01016654
Vues:
8
Hi Mike,

I ended up overriding mmBaseForm_Closing and using .RejectChanges() on the table I didn't want to update. Not what I would consider an elegant solution, I would much rather prefer that the business object took responsibility for which tables where to be saved, but it works all the same so now I can move on to the next challenge :)

protected override void mmBaseForm_Closing(object sender, CancelEventArgs e)
{
DataSet ds = oPrimBizObj.GetCurrentDataSet();
DataTable nonMembers = ds.Tables[oPrimBizObj.NonMembersTable];
nonMembers.RejectChanges();
base.mmBaseForm_Closing(sender, e);
}

Thanks for your help,

Andrew
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform