Samsung/Tizen-CSharp-Samples

Bug Using SQLite

hadihashem opened this issue · 2 comments

Hello

I have the following open topic with Microsoft where abviously it has to be double checked by Samsung
https://github.com/MicrosoftDocs/xamarin-docs/issues/2675

In this issue, I simply wanted to add Tizen related project in this Xamarin.Form Sample:
https://docs.microsoft.com/en-us/samples/xamarin/xamarin-forms-samples/todo/

Can you please have a look on the attached files?
Todo.zip

Many thanks
Regards

Hello,

First of all, you need to change this in your tizen project setting file.
Tizen.NET.Sdk 1.0.3" => Project Sdk="Tizen.NET.Sdk/1.0.9"

And, below SQLite sample works correctly with Tizen 5.5 Wearable Emulator.
Could you check how it works?
https://github.com/Samsung/Tizen-CSharp-Samples/tree/master/Wearable/SQLite.NET.Sample

thanks

@sgchoi5 The Tizen SQLite Sample is indeed working and also on Tizen 4.0 => Thank you for your indication which helped me to figure out the solution
In fact, it seems to be a bit more complicated using the Xamarin.Forms attached Sample
The conditions to make it running on Xamarin.Forms sample are:

  1. Use minimum Tizen 5.0 target framework (w/o Tizen.NET.Sdk/1.0.9)
  2. Reference SQLite & SQLitePCLRaw.provider.sqlite3.netstandard11 on Tizen Plateform Project
  3. Add the following 2 lines in the constructor of the main class in the Tizen Plateform Project
  • raw.SetProvider(new SQLite3Provider_sqlite3());
  • raw.FreezeProvider(true);
  1. No need for special privileges and the PCL project remains as is and will be then working for all platforms the same incl. Tizen
    I attached the updated project sample
    Todo.zip
    Regards