Ich implementiere SQLite-Datenbank in meiner Windows Store-Anwendung (WinRT). Ich möchte Beziehung zwischen zwei Tabellen (1: n) Buch (1) - Kapitel (n)So erstellen Sie Sammlung (1: n) Relation
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>();
}
}
I
- $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
bekommen Was mache ich falsch?
Gibt es mehr zu der Fehlermeldung? Eine Ausnahme, vielleicht? –
Diese zusätzliche Information ist die Nachricht der Ausnahme, die ich bekomme – Fixus
Ich habe noch nie zuvor eine Fehlermeldung "Ich weiß nichts über System.Collections.Generic.List'1" gesehen. Sind Sie sicher, dass Sie die genaue Fehlermeldung kopieren und einfügen? – Bobson