コード例 #1
0
        public IList<string> GetNames()
        {
            List<string> names;

            names = new List<string>();
            using (BookMarketDbContext db = new BookMarketDbContext())
            {
                foreach (var entry in db.GetPublisherNames())
                    names.Add(entry);
            }
            return names;
        }