Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SaveSelectCommand blows up when tableName is empty
Message
 
À
03/01/2005 11:06:06
Max Fillmore
Essential Skills, Inc.
Lenexa, Kansas, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00973826
Message ID:
00974448
Vues:
100
Max,

Thanks for the heads up. I'll change the code in FillDataSet to:
if (!mmString.Empty(tableName))
{
	// Fill the specified table in the DataSet
	adapter.Fill(ds, tableName);

	// Store the current select command for the current table in the
	// DataTable's extended properties
	this.SaveSelectCommand(ds, tableName, dbAdapter);
}
else
{
	 //Fill dataset, with table being named according to SQL rules
	adapter.Fill(ds);

	// Store the current select command for the current table in the
	// DataTable's extended properties
	this.SaveSelectCommand(ds, ds.Tables[0].TableName, dbAdapter);
}
Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform