Implementuję bazę danych SQLite w mojej aplikacji Windows Store (WinRT). Chcę relacji między dwiema tabelami (1: n) Book (1) - rozdział (N)jak utworzyć kolekcję (1: n) relacja
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>();
}
}
dostaję
- $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
Co robię źle?
Czy istnieje bardziej w błędzie? Być może wyjątek? –
Ta dodatkowa informacja jest komunikatem wyjątku, który dostaję – Fixus
Nigdy wcześniej nie widziałem komunikatu o błędzie "Nie wiem o System.Collections.Generic.List'1" wcześniej. Czy na pewno kopiujesz i wklejasz dokładny komunikat o błędzie? – Bobson