Witam
Mam serwis WCF, który pobiera mi z bazy danych List<Book>. I zwraca poprawnie.
W klasie
Box
{
public string name {get;set;}
private IList<Book> bookList ;
public IList<Book> bookListInterface
{
get
{
if (bookList == null)
bookList = new List<Book>();
return bookList;
}
set
{
bookList = value;
}
}
}
I teraz gdy po stronie klienta wołam:
Box box = new Box();
box.bookListInterface = service.GetBook()
to bookListInterface cały czas ma 0 elementów... Mam ustawione typ kolekcji na listy generyczne.. Test Client w VS zwraca dane poprawne.