linq to Entity 的 left join 怎么用啊 ????
linq to Entity 的 left join 怎么用啊 ????有好的 方案 吗 ?? --------------------编程问答-------------------- 顶! --------------------编程问答-------------------- 顶! --------------------编程问答-------------------- SELECT [t0].[Name], [t0].[FullDescription]
FROM [Product] AS [t0]
INNER JOIN [Category] AS [t1] ON [t0].[Id] = [t1].[Id]
from p in Products
join c in Categories on p.Id equals c.Id
select new {p.Name,p.FullDescription}
Products
.Join (
Categories,
p => p.Id,
c => c.Id,
(p, c) =>
new
{
Name = p.Name,
FullDescription = p.FullDescription
}
)
补充:.NET技术 , C#