NataliaŠ

No words to explain my gratitude on that tipŠ.

That solved my sealed problem between Windows Mobile and Monos and future
things:

#if MonoTouch
using SqlCeConnection = Mono.Data.Sqlite.SqliteConnection;
using SqlCeCommand = Mono.Data.Sqlite.SqliteCommand;
using SqlCeDataReader = Mono.Data.Sqlite.SqliteDataReader;
using SqlCeDataAdapter = Mono.Data.Sqlite.SqliteDataAdapter;
using SqlCeException = Mono.Data.Sqlite.SqliteException;
using SqlCeParameter = Mono.Data.Sqlite.SqliteParameter;
using SqlCeTransaction = Mono.Data.Sqlite.SqliteTransaction;
#endif

No more find/replace SqlCe to SqliteŠ

Really thanks,

Karl

From:  "gabriel.b...@gmail.com" <gabriel.b...@gmail.com>
Reply-To:  "monodroid@lists.ximian.com" <monodroid@lists.ximian.com>
Date:  Fri, 29 Jul 2011 08:19:44 -0300
To:  "monodroid@lists.ximian.com" <monodroid@lists.ximian.com>
Subject:  SPAM-LOW:  Re: [mono-android] Antwort: Windows CE Interop

if at least 

2011/7/29 Natalia Portillo <clau...@claunia.com>
> Hi,
> 
> I use System.Data.SQLite in Mac OS X, Linux, Windows and Windows CE, and
> Mono.Data.Sqlite in MonoTouch.
> 
> #if MonoTouch
> using Mono.Data.Sqlite;
> #else
> using System.Data.SQLite;
> #endif
> 
> #if MonoTouch
> using SQLiteConnection = Mono.Data.Sqlite.SqliteConnection;
> using SQLiteCommand = Mono.Data.Sqlite.SqliteCommand;
> using SQLiteDataAdapter = Mono.Data.Sqlite.SqliteDataAdapter;
> using SQLiteException = Mono.Data.Sqlite.SqliteException;
> using SQLiteParameter = Mono.Data.Sqlite.SqliteParameter;
> using SQLiteTransaction = Mono.Data.Sqlite.SqliteTransaction;
> #endif
> 
> And no more #ifs or any change to the code :p
> 
> Just define MonoDroid and use that snippet (changing MonoTouch to MonoDroid)
> 
> El 19/07/2011, a las 14:38, gabriel.b...@gmail.com escribió:
> 
>> The problem is:
>> Not an implementation of IDbConnection and its family. This is not a full
>> SQLite driver. If you need that, go get System.Data.SQLite
>> <http://sqlite.phxsoftware.com/>  orcsharp-sqlite
>> <http://code.google.com/p/csharp-sqlite/> .
>> I need the IDbConnection and need to work with monodroid
>> 
>> 2011/7/19 Greg Shackles <gshack...@gmail.com>
>>> It works well with Mono For Android as well:
>>> http://www.gregshackles.com/2011/02/using-a-database-in-monodroid-applicatio
>>> ns/
>>> 
>>> 
>>> On Tue, Jul 19, 2011 at 9:12 AM, gabriel.b...@gmail.com
>>> <gabriel.b...@gmail.com> wrote:
>>>> This one works with monodroid or only monotouch ?
>>>> 
>>>> 
>>>> 2011/7/19 Carlo Bolz <c...@dm-edv.de>
>>>>> Then use http://code.google.com/p/sqlite-net/ . It als includes a light
>>>>> weight O/R mapper. But mainly you can change the Namespace so it fits with
>>>>> both projects and/or assemblies.
>>>>>  
>>>>> Regards
>>>>> Carlo
>>>>>  
>>>>> 
>>>>> Von: monodroid-boun...@lists.ximian.com
>>>>> [mailto:monodroid-boun...@lists.ximian.com] Im Auftrag von
>>>>> gabriel.b...@gmail.com
>>>>> Gesendet: Dienstag, 19. Juli 2011 01:18
>>>>> An: Discussions related to Mono for Android
>>>>> Betreff: Re: [mono-android] Antwort: Windows CE Interop
>>>>> 
>>>>>  
>>>>> The problem that i`m getting that is really painfull is with the Sqlite
>>>>> Assembly in mono the assembly use Sqlite but in ce they use SQLite  this
>>>>> is the only diference the caption os the classes there is any work around
>>>>> ?
>>>>> 
>>>>> 2011/7/18 <bernhardgess...@cs-ag.de>
>>>>> 
>>>>> I dont have an example i can give you, but we are working as you
>>>>> deschribed. For WinCE, Android, WP7 und iOS. The basic idea is to share
>>>>> the code beetween different projects. Create one Visual Studio Project for
>>>>> each platform you want to target. Then develop as usual in opf of the
>>>>> projects and add all the files to the other project als link. Use only
>>>>> code that works on both plattforms or in case this is not possible write a
>>>>> solution for each platform and don't share the files between the two
>>>>> projects. 
>>>>> 
>>>>> 
>>>>> 
>>>>> "gabriel.b...@gmail.com" <gabriel.b...@gmail.com>
>>>>> Gesendet von: monodroid-boun...@lists.ximian.com 19.07.2011 00:49
>>>>> Bitte antworten an
>>>>> Discussions related to Mono for Android <monodroid@lists.ximian.com>
>>>>> anmonodr...@lists.ximian.com
>>>>> Kopie
>>>>> Thema[mono-android] Windows CE Interop
>>>>>  
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> I Wish to make one class lobrary that would be used in my android an my
>>>>> windows CE project there is any way to do that ?
>>>>> If there is any one have any sample project ?
>>>>> Thx a lot guys_______________________________________________
>>>>> Monodroid mailing list
>>>>> Monodroid@lists.ximian.com
>>>>> 
>>>>> UNSUBSCRIBE INFORMATION:
>>>>> http://lists.ximian.com/mailman/listinfo/monodroid
>>>>>  <http://lists.ximian.com/mailman/listinfo/monodroid>
>>>>> 
>>>>> _______________________________________________
>>>>> Monodroid mailing list
>>>>> Monodroid@lists.ximian.com
>>>>> 
>>>>> UNSUBSCRIBE INFORMATION:
>>>>> http://lists.ximian.com/mailman/listinfo/monodroid
>>>>>  
>>>>> 
>>>>> _______________________________________________
>>>>> Monodroid mailing list
>>>>> Monodroid@lists.ximian.com
>>>>> 
>>>>> UNSUBSCRIBE INFORMATION:
>>>>> http://lists.ximian.com/mailman/listinfo/monodroid
>>>>> 
>>>>> 
>>>>> 
>>>>> _______________________________________________
>>>>> Monodroid mailing list
>>>>> Monodroid@lists.ximian.com
>>>>> 
>>>>> UNSUBSCRIBE INFORMATION:
>>>>> http://lists.ximian.com/mailman/listinfo/monodroid
>>>>> 
>>>>> 
>>>> 
>>>> _______________________________________________
>>>> Monodroid mailing list
>>>> Monodroid@lists.ximian.com
>>>> 
>>>> UNSUBSCRIBE INFORMATION:
>>>> http://lists.ximian.com/mailman/listinfo/monodroid
>>>> 
>>>> 
>>> _______________________________________________
>>> Monodroid mailing list
>>> Monodroid@lists.ximian.com
>>> 
>>> UNSUBSCRIBE INFORMATION:
>>> http://lists.ximian.com/mailman/listinfo/monodroid
>> 
>> 
>> _______________________________________________
>> Monodroid mailing list
>> Monodroid@lists.ximian.com
>> 
>> UNSUBSCRIBE INFORMATION:
>> http://lists.ximian.com/mailman/listinfo/monodroid
>> 
> 
> _______________________________________________ Monodroid mailing list
> Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid

_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to