SQLite在单声道中,找不到SQLiteConnection [英] Sqlite in mono, SQLiteConnection could not be found

查看:312
本文介绍了SQLite在单声道中,找不到SQLiteConnection的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不确定如何更正此错误.

I am not sure how to correct this error.

The type or namespace name `SQLiteConnection' could not be found. Are you missing a using directive or an assembly reference?

我包括了Mono.Data Mono.Data.Sqlite Mono.Data.SqliteClient参考和一些不相关的参考.我正在使用

I included the reference Mono.Data Mono.Data.Sqlite Mono.Data.SqliteClient and a few non related refs. I am using

//using System.Data.SQLite; //<-- this line was all i needed in msvs
using Mono.Data.Sqlite;
using Mono.Data.SqliteClient;
using System;
using System.Data;
using Mono.Data.SqliteClient

推荐答案


您是否已包含


Have you included the references (dll) from http://sqlite.phxsoftware.com/ ?
If not, try to do that, and it should work.

以上是如果您想使用System.Data.SQLite,但是您也可以使用内置的Mono.Data.SqliteClient,如果您使用Mono,则效果会更好.在此处 http://www.mono-project.com/SQLite 了解更多信息.在他们的代码示例中,他们使用SqliteConnection,而您似乎在使用SQLiteConnection,请注意不同的情况.

The above is if you want to use System.Data.SQLite, but you can also use the built in Mono.Data.SqliteClient that might be better if you use Mono. Read more about it here http://www.mono-project.com/SQLite. In their code example they use SqliteConnection, and you seems to use SQLiteConnection, notice the different case.

这篇关于SQLite在单声道中,找不到SQLiteConnection的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆