コード例 #1
0
ファイル: VModelFactory.cs プロジェクト: ctsui/Sequential
 public static List<BookVModel> Books(IQueryable<SeqBook> result)
 {
     List<BookVModel> bookList = new List<BookVModel>();
     BookVModel book;
     foreach (SeqBook b in result) {
         book = new BookVModel();
         book.Title = b.Title;
         book.PageCount = b.PageCount;
         bookList.Add(book);
     }
     return bookList;
 }
コード例 #2
0
ファイル: VModelFactory.cs プロジェクト: ctsui/Sequential
        public static List <BookVModel> Books(IQueryable <SeqBook> result)
        {
            List <BookVModel> bookList = new List <BookVModel>();
            BookVModel        book;

            foreach (SeqBook b in result)
            {
                book           = new BookVModel();
                book.Title     = b.Title;
                book.PageCount = b.PageCount;
                bookList.Add(book);
            }
            return(bookList);
        }