Just having some problems with LINQ and Microsoft CRM and I hope you can help.
in SQL terms I am thinking along the lines of:
select * from table where id in ("1", "2", "3")
I have this code and it works fine when retrieving records off a SQL Server.
var _records = from _adUserDatas in _adUserDataDBDataContex.ADUserDatas
where
_list.Contains(_adUserDatas.id)
orderby _adUserDatas.fan
select _adUserDatas;
When I changed it to use the contacts entity in Microsoft CRM, it is throwing an exception and it says my where clause is not valid.
Any ideas how to get it to work?
thanks
ps. I found this stackoverflow discussion but I'm getting errors on the myset.where part.