首页 新闻 会员 周边 捐助

Linq多表查询问题

0
悬赏园豆:10 [已关闭问题] 关闭于 2010-12-18 10:39

 var s = from b in entities.Booklist
                    join c in entities.ChapterInfoList
                    on b.bookid equals c.chapterbookid
                    join d in entities.ChapterContent
                    on c.chapterid equals d.chapterid
                    where b.bookid == bookid && c.chapterindex == chapterindex
                    select new ChapterPageInfo
                    {
                        bookName = b.bookname,
                        bookAuthor = b.bookauthor,
                        dataLength = d.chaptercontent1.Length / 2,
                        content = d.chaptercontent1.Substring(page, pageLength),
                        //ImgFlag =c.imflag,
                        ChapterID = c.chapterid,
                        chapterTitle = c.chaptertitle
                    };

这句查询找不到是什么问题

自由呼吸的主页 自由呼吸 | 初学一级 | 园豆:8
提问于:2010-12-15 15:22
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册