简体   繁体   English

未实现OleDb

[英]OleDb not implemented

When running a very basic program, I get 当运行一个非常基本的程序时,我得到

System.NotImplementedException (OleDb is not implemented.) System.NotImplementedException(未实现OleDb。)

My code: 我的代码:

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

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

I have no idea what is the cause for this. 我不知道是什么原因造成的。 I am running this program on MonoDevelop on Linux, and when I run on Visual Studio it works. 我在Linux上的MonoDevelop上运行该程序,并且在Visual Studio上运行时可以运行。

Thank you for reading, help would be appreciated. 感谢您的阅读,将不胜感激。 :) :)

I changed the program to the SqlConnection library like @MarcGravell had offered and it works. 我将程序更改为SqlConnection库,就像@MarcGravell提供的那样,它可以正常工作。 It seems like the problem was in MonoDevelop. 看来问题出在MonoDevelop中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM