mail-archives/monodroid/2011-December/007769.html

126 строки
3.5 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [mono-android] SqliteDataAdapter Fill method support
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:monodroid%40lists.ximian.com?Subject=%5Bmono-android%5D%20SqliteDataAdapter%20Fill%20method%20support&In-Reply-To=">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="007933.html">
<LINK REL="Next" HREF="007778.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[mono-android] SqliteDataAdapter Fill method support</H1>
<B>Venky</B>
<A HREF="mailto:monodroid%40lists.ximian.com?Subject=%5Bmono-android%5D%20SqliteDataAdapter%20Fill%20method%20support&In-Reply-To="
TITLE="[mono-android] SqliteDataAdapter Fill method support">venky at edurite.com
</A><BR>
<I>Mon Dec 12 23:10:46 EST 2011</I>
<P><UL>
<LI>Previous message: <A HREF="007933.html">[mono-android] Thread Exceptions Without Stacktrace
</A></li>
<LI>Next message: <A HREF="007778.html">[mono-android] SqliteDataAdapter Fill method support
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#7769">[ date ]</a>
<a href="thread.html#7769">[ thread ]</a>
<a href="subject.html#7769">[ subject ]</a>
<a href="author.html#7769">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>I have a whole host of data access layer code written like below:
DataSet ds = new DataSet(&quot;Result&quot;);
using (SqliteConnection conn = new SqliteConnection(dbPath))
{
conn.Open();
SqliteCommand cmd = new SqliteCommand();
cmd.Connection = conn;
cmd.CommandText = &quot;SELECT col1, col2 from myTable&quot;;
SqliteDataAdapter dataAdapter = new SqliteDataAdapter(cmd);
dataAdapter.Fill(ds);
conn.Close();
}
I get the following exception:
{System.EntryPointNotFoundException: sqlite3_column_origin_name at (wrapper
managed-to-native)
Mono.Data.Sqlite.UnsafeNativeMethods:sqlite3_column_origin_name (intptr,int)
at Mono.Data.Sqlite.SQLite3.ColumnOriginalName
(Mono.Data.Sqlite.SqliteStatement stmt, Int32 index) [0x00000] in ....
Is there any configuration that I need to perform? Any help is appreciated.
Thanks in advance
--
View this message in context: <A HREF="http://mono-for-android.1047100.n5.nabble.com/SqliteDataAdapter-Fill-method-support-tp5070293p5070293.html">http://mono-for-android.1047100.n5.nabble.com/SqliteDataAdapter-Fill-method-support-tp5070293p5070293.html</A>
Sent from the Mono for Android mailing list archive at Nabble.com.
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="007933.html">[mono-android] Thread Exceptions Without Stacktrace
</A></li>
<LI>Next message: <A HREF="007778.html">[mono-android] SqliteDataAdapter Fill method support
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#7769">[ date ]</a>
<a href="thread.html#7769">[ thread ]</a>
<a href="subject.html#7769">[ subject ]</a>
<a href="author.html#7769">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/monodroid">More information about the Monodroid
mailing list</a><br>
</body></html>