Learning adventures in coding
Solution: use Enumerable.Select with AsEnumerable.
Enumerable.Select
AsEnumerable.
var results = tmp.AsEnumerable()
.Select((row, index) =>
new
{ row.ContainerID, row.TypeID,
ContainerIndex = index });