I am a newbie about entity framework and linq. My query is like that
var query = (from d in db.MYTABLE where d.RELID.Equals(myInts[0])
You need to store your int in a variable, so that EntityFramework isn't trying to pull the whole array into its scope.
int
var myInt = myInts[0]; var query = (from d in db.MYTABLE where d.RELID.Equals(myInt) select d.ID).Distinct(); List urunidleri = query.ToList();