mercredi 31 décembre 2014

Sqlite-net create two tables from the same class

The documentation of the Sqlite-net says you can create a table using the ORM available in the library by using the generics as follow:



await connection.creatTableAsync<myClass>();


This will result in a table in the database named myClass


Now suppose that I need another table for storing the same type (myClass) but in a different table with different name (e.g.myOtherClassTable).


How can this be done, using the Sqlite-net library?


Aucun commentaire:

Enregistrer un commentaire