Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Typed Datasets
Message
De
11/07/2007 11:43:23
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Typed Datasets
Divers
Thread ID:
01239331
Message ID:
01239331
Vues:
51
I am using a Typed dataset and write changes to my data through my business logic.

I pass data via parameters into my update routines and write to the rows like this:
MyDataTable o1 = new MyDataTable();
MyRow o2 = o1.NewMyRow();
o2.firstname = x
o2.lastname = y
This works great, but if the contents of X or Y are greater in length than the fields o2.firstname or o2.lastname, I will get an error. What is the best way of trapping or preventing this type of error?

Thanks,

Jerry
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform