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

123 строки
4.6 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [mono-android] Using MySQL Connector
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:monodroid%40lists.ximian.com?Subject=%5Bmono-android%5D%20Using%20MySQL%20Connector&In-Reply-To=4ee0b258.0b69640a.06a0.2f7c%40mx.google.com">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="007674.html">
<LINK REL="Next" HREF="007682.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[mono-android] Using MySQL Connector</H1>
<B>Josh Handel</B>
<A HREF="mailto:monodroid%40lists.ximian.com?Subject=%5Bmono-android%5D%20Using%20MySQL%20Connector&In-Reply-To=4ee0b258.0b69640a.06a0.2f7c%40mx.google.com"
TITLE="[mono-android] Using MySQL Connector">Josh.Handel at catapultsystems.com
</A><BR>
<I>Thu Dec 8 09:00:56 EST 2011</I>
<P><UL>
<LI>Previous message: <A HREF="007674.html">[mono-android] Using MySQL Connector
</A></li>
<LI>Next message: <A HREF="007682.html">[mono-android] Using MySQL Connector
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#7676">[ date ]</a>
<a href="thread.html#7676">[ thread ]</a>
<a href="subject.html#7676">[ subject ]</a>
<a href="author.html#7676">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>I would suggest putting a middle ware between your app and your DB.. Throw a simple RESTful service between your mobile device and your MySQL DB.. This will increase security, give you a clean separation of concerns and increase the performance of your mobile app by decreasing the communications burdon of your app..
Also, are you using Mono for Android 4.0 if you are, make sure Fast Deploy is off... Your FileNotFoundException sounds related to fast deploy issues around external assemblies.
Josh Handel
Mobile Architect
512.328.8181 | Main
512.328.0584 | Fax
512.577-6568 | Cell
www.catapultsystems.com&lt;<A HREF="https://webmail.catapultsystems.com/owa/UrlBlockedError.aspx">https://webmail.catapultsystems.com/owa/UrlBlockedError.aspx</A>&gt;
CATAPULT SYSTEMS INC.
THE MICROSOFT CONSULTING COMPANY
________________________________
From: <A HREF="http://lists.ximian.com/mailman/listinfo/monodroid">monodroid-bounces at lists.ximian.com</A> [<A HREF="http://lists.ximian.com/mailman/listinfo/monodroid">monodroid-bounces at lists.ximian.com</A>] on behalf of Vladimir Dimitrov [<A HREF="http://lists.ximian.com/mailman/listinfo/monodroid">vlad.dimitrov at gmail.com</A>]
Sent: Thursday, December 08, 2011 6:49 AM
To: <A HREF="http://lists.ximian.com/mailman/listinfo/monodroid">monodroid at lists.ximian.com</A>
Subject: [mono-android] Using MySQL Connector
Hey guys,
I am trying to figure out what is the best way to connect to a MySQL server from the Mono Android app I am creating. I had mixed success before. I am experimenting with the mysql.data.cf.dll version of the connector which is trimmed down version for Pocket PCs, so it gets less dependences on stuff not available like System.Transactions which I don&#8217;t need either way.
The problem is that when there is no linking the app seems to work fine. But this should not be the way to proceed for production, so I looked at the linking options and added linking of all the user and SDK assemblies and &#8211;linkskip for the MySql.Data.CF assembly. But now when the package is created and shipped to the device I get a FileNotfoundException about the MySql assembly not being found at all.
Any ideas what should be done in this scenario?
Thanks,
Vladimir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <A HREF="http://lists.ximian.com/pipermail/monodroid/attachments/20111208/5e602ed1/attachment-0001.html">http://lists.ximian.com/pipermail/monodroid/attachments/20111208/5e602ed1/attachment-0001.html</A>
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="007674.html">[mono-android] Using MySQL Connector
</A></li>
<LI>Next message: <A HREF="007682.html">[mono-android] Using MySQL Connector
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#7676">[ date ]</a>
<a href="thread.html#7676">[ thread ]</a>
<a href="subject.html#7676">[ subject ]</a>
<a href="author.html#7676">[ 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>