|
Re: Typed Datasets: msg#00079windows.devel.dotnet.web
FYI, I found this after refining my google search and solved the problem once and for all. Here is a reprint of Mr. Beauchemin's post. You might want to also subscribe to his blog which at the moment seems to be focused on sql server 2005 and the CLR. Regards, stephen <post> You can make the XSD schema "semi-manually", by using DataAdapter.Fill with MissingSchemaAction = MissingSchemaAction.AddWithKey. Then use DataSet.WriteXmlSchema to output the schema and it will contain a xsd:maxLength restriction on the xsd:simpleType produced for that column. If you use this schema to create a strongly typed DataSet the DataSet will have MaxLength properties on the associated columns. Not sure of the easiest way to do that with VS, but I've done it with XSD.exe from the command line. Hope this helps, Bob Beauchemin </post> =================================== This list is hosted by DevelopMentor® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: ASP.NET and third party cookies: 00079, Brock Allen |
|---|---|
| Next by Date: | How to print a word document automatically from a web browser: 00079, SMART - Castellacci Massimo |
| Previous by Thread: | Typed Datasetsi: 00079, Stephen Patten |
| Next by Thread: | ASP.NET and third party cookies: 00079, Brian Vallelunga |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |