Translate SQL query to LINQ
- by ile
PhotoAlbums table
AlbumID
Title
Date
Photos table:
PhotoID
Title
Date
AlbumID
SELECT AlbumID, Title, Date,
(SELECT TOP (1) PhotoID
FROM Photos AS c
WHERE (AlbumID = a.AlbumID)) AS PhotoID
FROM PhotoAlbums AS a
I need this query written in LINQ-to-SQL. Thanks in advance