e.g.
Code: Select all
var query = from table1 in entity.Table1
from table2 in documentHead.Table2
where table1.InternalType.Contains(TypeRestriction)
orderby table2.StampRevision descending
select new
{
table1.OIDTable1,
table2.OIDTable2,
table2.Description,
table1.Extension,
max = table1.Table2.Max(x => x.OIDTable2)
};