Files
mono/mcs/class/System.Configuration/Test/standalone/t45.cs
T
Atsushi Eno 3124e8a335 2007-11-15 Atsushi Enomoto <[email protected]>
* Makefile : added -r:System.Data.
	* t45.cs, t45.exe.expected : test for bug #323708.


svn path=/trunk/mcs/; revision=89702
2007-11-15 20:22:22 +00:00

19 lines
331 B
C#

using System;
using System.Data;
using System.Data.Common;
public class Test
{
static void Main ()
{
DataTable dt = DbProviderFactories.GetFactoryClasses ();
foreach (DataRow row in dt.Rows) {
string name = row ["Name"] as string;
if (name.IndexOf ("Odbc") >= 0)
Console.WriteLine ("Provider=" + name);
}
}
}