第一种 Lamada 写法
var modelDto= myDBContext.Books.Join(
myDBContext.Authers,
e1 => e1.AutherID,
e2 => e2.AutherID,
(e1, e2) => new
{
e1,
e2
}
).Select(s => new
{
s.e1.BookID,
s.e1.Content,
AuthorName = s.e2.Name,
}).ToList();
第二种 :linq写法 加分组
var modelDto2 = from a in myDBContext.Books