Sto implementando il database SQLite nella mia applicazione Windows Store (WinRT). Voglio relazione tra due tabelle (1: n) libro (1) - Capitolo (n)come creare la relazione collezione (1: n)
class Book
{
[SQLite.AutoIncrement, SQLite.PrimaryKey]
public int Id { get; set; }
public String Title { get; set; }
public String Description { get; set; }
public String Author { get; set; }
public List<Chapter> Chapters { get; set; }
public Book()
{
this.Chapeters = new List<Chapter>();
}
}
ottengo
- $exception {"Don't know about System.Collections.Generic.List`1[Audioteka.Models.Chapter]"} System.Exception {System.NotSupportedException}
+ [System.NotSupportedException] {"Don't know about System.Collections.Generic.List`1[Audioteka.Models.Chapter]"} System.NotSupportedException
+ Data {System.Collections.ListDictionaryInternal} System.Collections.IDictionary {System.Collections.ListDictionaryInternal}
HelpLink null string
HResult -2146233067 int
+ InnerException null System.Exception
Message "Don't know about System.Collections.Generic.List`1[Audioteka.Models.Chapter]" string
Che cosa sto facendo di sbagliato?
c'è di più per il messaggio di errore? Un'eccezione, forse? –
Questa informazione aggiuntiva è il messaggio dell'eccezione che ottengo – Fixus
Non ho mai visto un messaggio di errore "Non so su System.Collections.Generic.List'1" prima. Sei sicuro di copiare e incollare l'esatto messaggio di errore? – Bobson