I've commited a couple of goodies to the Provider Factory:

1) A new Description property to the Provider class and app.config file. (thanks Daniel Morgan for the suggestion) The test app under /mcs/class/Mono.Data/test has also been updated.

Here's some sample code on displaying a list of configured ADO.NET providers:

Console.WriteLine("Configured Providers:");
foreach (Provider p in ProviderFactory.Providers)
Console.WriteLine(p.Description);

2) Added a new super lazy overload to the FillDataSet method (in DataTools.cs) This will fill a dataset in one line of code! (another Daniel suggestion)

Alrighty...without further introduction...the one line of code!

DataSet ds=DataTools.FillDataSet("PubsConnStr", "select * from authors");

where PubsConnStr is setup in your app.config file. For more info see my original post: http://lists.ximian.com/archives/public/mono-list/2002-November/003400.html


Well, thats it. Please keep the suggestions coming.
Happy Hacking!

Brian






_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


_______________________________________________
Mono-list maillist - [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to