C# SQLiteConnection不接受sting作为参数
我正在尝试使用在internet上找到的一些示例连接到SQLite.db文件:C# SQLiteConnection不接受sting作为参数,c#,sqlite,sqlite.net,C#,Sqlite,Sqlite.net,我正在尝试使用在internet上找到的一些示例连接到SQLite.db文件: var m_connection = new SQLiteConnection("Data Source=Tabs.db;version=3;"); 然而,VisualStudio2015不会接受这一点,因为它说它不会只接受一个论点 SQLiteConnection.SQLiteConnection(SQLite.Net.Interop.ISQLitePlatform, 字符串,bool,SQLite.Net.ib
var m_connection = new SQLiteConnection("Data Source=Tabs.db;version=3;");
然而,VisualStudio2015不会接受这一点,因为它说它不会只接受一个论点
SQLiteConnection.SQLiteConnection(SQLite.Net.Interop.ISQLitePlatform,
字符串,bool,SQLite.Net.iblobserilizer,
System.Collections.Generic.IDictionary,
System.Collections.Generic.IDictionary,
SQLite.Net.IContractResolver)
是显示在对象浏览器中的内容。
所有的例子似乎都很简单,我遇到了什么?
我下载了SQLite.Net-pcl3.1.1听起来你把system.data.SQLite(来自SQLite团队)和SQLite.Net搞混了 Sqlite.net没有单个字符串构造函数
如果您仅在windows上工作,我建议您使用system.data.sqlite(或参考sqlite.net文档)听起来您将system.data.sqlite(来自sqlite团队)与sqlite.net混淆了 Sqlite.net没有单个字符串构造函数 如果您仅在windows上工作,我建议您使用system.data.sqlite(或参考sqlite.net文档)