Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Typed datasets
Message
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Titre:
Divers
Thread ID:
00827126
Message ID:
00827197
Vues:
14
>Can anyone point me to a good reference to help me understand typed datasets?
>
>My understanding to this point is that a typed dataset simply has an XML Schema associated with it. I'm doing this at runtime by using the ReadXmlSchema() method of the dataset.
>
>I'm a little vague as to the utility and advantages of using typed datasets, and it would seem that maintenance of the XML Schemas for each dataset used in a complex application could become a bit of a headache. I want to learn more.
>
>Thanks.

It is pretty simple to write a small application that can generate the XSD for you from the table structure or from the results of a stored procedure. Add the XSD to your project and your good to go. We have sub-classed from generated C# code the VS.NET generates from a XSD, so we have even greater flexibility. You do have to change structure anytime your table changes or your SQL statement changes, but with a tool it can be very quickly done.

It makes the syntax easier when coding, I think and adds another layer of type checking before it goes into the database. I think the advantages outweight any disadvantages.

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

Click here to load this message in the networking platform