有没有办法在 SQLite for c# 中使用注释复合键?下面的代码抛出一个异常,指出表有多个主键:
userDatabase.CreateTable<MyObject>();
//class file
[SQLite.Table("MyObject")]
public class MyObject
{
[SQLite.PrimaryKey]
public int IdOne { get; set; }
[SQLite.PrimaryKey]
public int IdTwo { get; set; }
}