コード例 #1
0
        public IList<Book> GetAllBooksByTagId(Int32 tagId)
        {
            List<Book> books;
            BookTag tag;

            books = new List<Book>();
            using (BookMarketDbContext db = new BookMarketDbContext())
            {
                foreach (Book entry in db.GetAllBooksByTagId(tagId))
                    books.Add(entry);
            }

            return books;
        }