I have an entity:
class Entity
{
[PrimaryKey]
public int FirstKey { get; set; }
[PrimaryKey]
public int SecondKey { get; set; }
}
I use SQLiteConnection.CreateTable<>() to create table:
SQLiteConnection.CreateTable<Entity>();
However, I got the following error: table "Entity" has more than one primary key.
Please help. Thank you.
I have an entity:
I use SQLiteConnection.CreateTable<>() to create table:
However, I got the following error: table "Entity" has more than one primary key.
Please help. Thank you.