Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Data Access Method
Message
De
01/11/2007 14:50:47
 
 
À
01/11/2007 14:32:14
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Versions des environnements
Environment:
VB 8.0
OS:
Vista
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01265411
Message ID:
01265804
Vues:
10

Personally, I avoid the CommandBuilder and prefer to roll my own. But, first to answer your question:

MyDataSet.Tables[0].PrimaryKey = new DataColumn[] { MyDataSet.Tables[0].Columns["MyPK"] };


Aren't you the big proponent of typed datasets? Shouldn't it be...
DtMyTable.PrimaryKey = new DataColumn[] { DtMyTable.MyPK};
Keep up the talk on untyped datasets, and I'm gonna have to send a letter to your employer. ;)

JUST KIDDING!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform