Database name 1: BOOK
, table name: BookInformation
(BookID(PK),BookName))
BookID BookName
---------------------
19 A
25 T
56 F
45 H
77 K
53 M
76 YT
I want to get the ID values in the table.So I write this linq entities query.But this query error.
var query= from a in Book.BookInformation.AsEnumerable.Select(a=>a.BookID).ToList();
How to write get the ID values?