Xamarin.android 从sqlite填充数据集

Xamarin.android 从sqlite填充数据集,xamarin.android,Xamarin.android,如何修改此函数。 我想用它来填充sqllite中的数据集 错误 这是因为您使用两个不同的库 var conn = new SQLite.SQLiteConnection(dbPath); 这里您使用了sqlite net pclnuget中的方法 Mono.Data.Sqlite.SqliteCommand cmd = new SqliteCommand(query, conn) 这里需要使用System.Data.SQLite.Corenuget中的方法 因此,您需要使用统一的 例如(

如何修改此函数。 我想用它来填充sqllite中的数据集

错误


这是因为您使用两个不同的库

var conn = new SQLite.SQLiteConnection(dbPath); 
这里您使用了sqlite net pclnuget中的方法

Mono.Data.Sqlite.SqliteCommand cmd = new SqliteCommand(query, conn)
这里需要使用System.Data.SQLite.Corenuget中的方法

因此,您需要使用统一的

例如(使用System.Data.SQLite.Corenuget):


这是因为您使用两个不同的库

var conn = new SQLite.SQLiteConnection(dbPath); 
这里您使用了sqlite net pclnuget中的方法

Mono.Data.Sqlite.SqliteCommand cmd = new SqliteCommand(query, conn)
这里需要使用System.Data.SQLite.Corenuget中的方法

因此,您需要使用统一的

例如(使用System.Data.SQLite.Corenuget):