Sqlite一对多关系

我正在制作一个需要存储和从sqlite数据库获取数据的应用程序。 我目前使用的两个Nuget包是Sqlite PCLSQLite-Net Extensions

 [Table("patient")] public class Patient { [PrimaryKey] public string ID { get; set;} public string FirstName { get; set; } public string LastName { get; set; } [OneToMany] public List PatientVitals { get; set; } } [Table("patientVitals")] public class PatientVitals { [PrimaryKey] public string VitalID {get;set;} public string Weight { get; set;} public string Height { get; set;} [ForeignKey(typeof(Patient))] public string SmartCardID {get;set;} } 

整个事情编译得很好,但当我尝试运行模拟器时,我收到此消息:

抛出System.NotSupportedException不知道System.Collections.Generic.List1

我检查了SQLite-Net Extensions 文档 ,它确实支持List。

有谁知道如何解决这一问题?

请在表PatientVitals中添加Patient作为外键的主键。

无论如何,经过一些研究,结果发现我必须删除所有与SQLite相关的nudgets并将它们重新安装到项目中。 在我的例子中,由于我需要SQLite-Net Extensions,我只需要将它放在我的项目中,任何依赖项nudgets也将与SQL-Net Extensions一起安装。