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; }
partial void UpdateAuthor(Author instance);
partial void DeleteAuthor(Author instance);
partial void InsertAuthor(Author instance);