OleDb 未实现

OleDb not implemented

当运行使用一个非常基本的程序时,我得到

System.NotImplementedException (OleDb is not implemented.)

我的代码:

using System;
using System.Data;
using System.Data.OleDb;

namespace Tests
{
    class MainClass
    {
        public static void Main(string[] args)
        {
            OleDbConnection connection = new OleDbConnection();
        }
    }
}

我不知道这是什么原因。我在 Linux 上 运行 在 MonoDevelop 上使用这个程序,当我在 Visual Studio 上 运行 时它可以工作。

感谢您的阅读,将不胜感激。 :)

我将程序更改为 SqlConnection 库,就像@MarcGravell 提供的那样,它可以运行。看来问题出在 MonoDevelop 中。