Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我创建了两个类,Item 和 Warranty。Item 包含对 Warranty 的引用,并且 Warranty 使用外键属性进行标记。我遵循与 wiki 页面上相同的模式,但我不断收到“不知道保修”错误。这是我的课程的样子:
物品类别
保修等级
这就是我调用创建表的方法,第一行是抛出错误。
OneToOne属性继承自Ignoresqlite.net 属性。如果您的 sqlite.net 尝试创建该Warranty列是因为您的项目中有两个 sqlite.net 库。
OneToOne
Ignore
Warranty
根据您使用的 SQLite-Net Extensions 版本,您可能包含了不同的 sqlite.net 库。删除旧的 sqlite-net 依赖项或使用适合当前 sqlite-net 库的 SQLite-Net 扩展。