有一个Basket,它存储List<Fruit>。每个Fruit有一个Pip。如果我保存这个关系,以后检索时,ForeignKeyPipId具有价值,但对象Pip是null,尽管我用CascadeRead。 如果我尝试使用上FruitListCascadeOperation.All我得到Constraint at SQLite.PreparedSqlLiteInsertCommand.Execut
我很努力地在我的Xamarin Android应用程序中使用Sqlite.net扩展。 我得到exeption: 不知道System.Collections.Generic.List`1 [app_name.Model.modelName] 的问题是相似的: Sqlite extension is not working as expected 和 Use SQLiteNetextensions
我正在使用SQLite-Net Extensions,并且在我对它进行一些操作之前,我想检查一个表是否存在。这是我试过的: await this.database.ExecuteScalarAsync<int>("SELECT count(*) FROM sqlite_master WHERE type='table' AND name='{0}'", tableName).ContinueWit
您可以在标题中看到错误。 有我的表类:发生 public class Cars : Table
{
[NotNull]
public string name { get; set; }
[ForeignKey(typeof(Models)), NotNull]
public int model_out_id { get; set; }
[Fore
我试图建立两个表,并在Xamarin它们之间的关系跨plattform应用。下面是表的代码: [Table("DetailTypes")]
public class DetailType
{
[PrimaryKey, AutoIncrement]
public int ID { get; set; }
public string Detail { get; set
我使用SQLite as a database,我有如下表,其中的作品,当我创建它: public class TodoItem
{
[PrimaryKey, AutoIncrement]
public int ID { get; set; }
public string Name { get; set; }
public string Notes { g