I was getting this error because I have a table without a primary key in the db, but need key in linqdatasrc. Sln was to set Auto-Sync to OnInsert as described in this clip.
I have to admit I don't understand it, but using COUNT(*) OVER(PARTITION BY 1) AS theCount you can put a total record count in the select statement. Izaniiice...