I just upgraded my beta version of Visual Studio 2008 SP1 to the final (rtm) version, and noticed that code that used to work on the SP1 beta no longer did. The offending piece of code was a LINQ query where I was querying out some stuff from my entity model.
The error message I was getting said "The ntext and image data types cannot be used in WHERE, HAVING, GROUP BY, ON, or IN clauses, except when these data types are used with the LIKE or IS NULL predicates." which didn't really make sense, since I wasn't using ntext for any columns.
As it turns out, there is a bug in there, and for more information (and a workaround that's a bit of a pain in the butt) please look here: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=3746251&SiteID=1.
I'm not sure if this problem exists only with the Entity Framework or in any LINQ to SQL Compact scenario as well, but I'm assuming it's there in both.
This is really not so great, because we have a couple of projects at work where we're using SQL Compact and LINQ together, and we've been hoping to go to Visual Studio 2008 SP1 because of some of the new features in WPF and other things. So I really hope there will be a fix for this.
Thanks for your epic presentation at WebDay yesterday!
What are your views on using ADO.NET Data Services on top of the Entity Framework when distributing data to a Silverlight 2 app?
Posted by: Timo Liimatainen | Friday, October 17, 2008 at 16:51
Thank you!
I think it can be good, in some situations, and very bad in others. I've actually planned a post on the topic of ADO.NET Data Services and Silverlight, and I hope I can have it up at some point during next week.
Posted by: Nicke | Sunday, October 19, 2008 at 17:14