Esempio n. 1
0
 public IEnumerable<Genre> GetWrittenGenres(Author author)
 {
     return from auth in _libraryContext.Authors
             where auth.FirstName == author.FirstName && auth.LastName == author.LastName
             from authorbook in auth.AuthorBooks
             from bookgenre in authorbook.Book.BookGenres
             select bookgenre.Genre;
 }
Esempio n. 2
0
 partial void UpdateAuthor(Author instance);
Esempio n. 3
0
 partial void DeleteAuthor(Author instance);
Esempio n. 4
0
 partial void InsertAuthor(Author instance);