简体   繁体   English

C#使用System.Data.OleDb的问题

[英]C # using System.Data.OleDb problem

I have tried this on IDE SharpDevelop not on visual studio. 我已经在IDE SharpDevelop上而不是在Visual Studio上尝试过这个。 I am using the namespace like this: 我正在使用这样的命名空间:

using System.Data.OleDb;

But it is showing me following error: 但是它向我显示以下错误:

'Data' does not exist in the namespace 'System'(are you missing an assembly reference?)(CS0234)

Listen to the compiler: you're probably missing a reference to the System.Data assembly in your project. 听编译器:您可能缺少对项目中System.Data程序集的引用。 You need to add that reference using the Add Reference... dialog from the Project menu. 您需要使用“ Project菜单中的“ Add Reference...对话框来添加该引用。

Add Reference then search System.Data and add to your program using 添加引用,然后搜索System.Data并使用添加到您的程序中

using System.Data;
using System.Data.Oledb; 

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

相关问题 C#WebApplication-找到System.Data.OleDb但几乎为空 - C# WebApplication - System.Data.OleDb found but nearly empty 即使使用 System.Data.OleDb,C# 也找不到命名空间 OleDbConnection - C# cannot find namespace OleDbConnection even though using System.Data.OleDb is there 使用C#,是否可以使System.Data.OleDb处理特殊字符? - Using C#, is it possible to make System.Data.OleDb handle special characters? 在代码中使用System.Data.OleDb命名空间时找不到OleDbConnection - OleDbConnection not found while using System.Data.OleDb namespace in code PlatformNotSupportedException:此平台不支持 System.Data.OleDb - PlatformNotSupportedException: System.Data.OleDb is not supported on this platform System.Data.OleDb替代System.Data.OracleClient(C#) - System.Data.OleDb as alternative to System.Data.OracleClient (C#) Vidual Studio 2017 C# System.Data.OleDb 无法读取较新的 Excel 文件 - Vidual Studio 2017 C# System.Data.OleDb cannot read newer Excel files 在命名空间“System.Data.OleDb”中找不到类型名称“OleDbDataAdapter” - Type name "OleDbDataAdapter" could not be found in the namespace "System.Data.OleDb" 缺少System.Data.OleDb-改用什么 - System.Data.OleDb Missing - What to use instead Xamarin的System.Data.dll 2.0.5.0的System.Data.OleDb中缺少OleDbConnection - OleDbConnection missing in System.Data.OleDb on System.Data.dll 2.0.5.0 for Xamarin
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM