vendredi 27 février 2015

MvvmCross SQLite composite key

I am trying to learn how to support composite primary keys in MvvmCross using the MvvmCross Community SQLite Plugin. According to this answer it has been supported since at least Oct 2014. Does anyone know how to do this?


If I implement a model class with two [PrimaryKey] attributes then the call to CreateTable will throw a SQLite exception.


There doesn't appear to be a CompositeKey attribute.



  • My Core PCL project references Cirrious.MvvmCross.Community.Plugins.Sqlite via NuGet.

  • My Droid project references Cirrious.MvvmCross.Community.Plugins.Sqlite & Cirrious.MvvmCross.Community.Plugins.Sqlite.Droid.


Aucun commentaire:

Enregistrer un commentaire