ADO Net C# Tutorial

using System;
using System.Data;
using System.Data.Common;
using System.Collections.Generic;
using System.Text;
    class Program
    {
        static void Main(string[] args)
        {
            DataTable tbl = DbProviderFactories.GetFactoryClasses();
            foreach (DataRow row in tbl.Rows)
            {
                Console.WriteLine("{0} ({1})", row["Name"], row["InvariantName"]);
            }
            
        }
    }