Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This should be quite straight-forward to...</p> <ol> <li>Using MonoDevelop on the Mac, create a new MonoTouch library project - Cirrious.MvvmCross.Plugins.Sqlite.Touchin the folder /MvvmCross/Cirrious/Plugins/Sqlite/</li> <li>Set the build paths for debug and release to ../../../../bin/Touch/debug and ../../../../bin/Touch/release</li> <li>Add references to: Cirrious.MvvmCross (core PCL), Cirrious.MvvmCross.Touch (core MonoTouch methods), Cirrious.MvvmCross.Plugins.Sqlite (core SQLite functions)</li> <li>Add the 'boilerplate' plugin file - which just registers the connection factory in DI - see below</li> <li>Add the connection factory class - see below</li> <li>Add a <strong>link</strong> to the sqlite-net file in the Droid plugin - SQLiteNet.cs</li> <li>Build</li> <li>When you use this plugin in a MonoTouch UI project, you will need to register the plugin instance in your setup.cs file - just as you do all Touch plugins - this is because we can't use Assembly.Load() at runtime </li> <li>You may also need to do something special to use the plugin at runtime too - not sure - not used SQLite-net in MonoTouch yet - the Sqlite samples should help - <a href="https://github.com/praeclarum/sqlite-net/tree/master/examples/StocksTouch" rel="nofollow">https://github.com/praeclarum/sqlite-net/tree/master/examples/StocksTouch</a></li> </ol> <p>My attempt at this is: <a href="https://github.com/slodge/MvvmCross/tree/vnext/Cirrious/Plugins/Sqlite/Cirrious.MvvmCross.Plugins.Sqlite.Touch" rel="nofollow">https://github.com/slodge/MvvmCross/tree/vnext/Cirrious/Plugins/Sqlite/Cirrious.MvvmCross.Plugins.Sqlite.Touch</a></p> <p>But I've not tested this.</p> <p>Would love to read about it if it works... and to see a pull to fix it if it doesn't.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload