LINQ in Action roller

Would it be hard to add support for SQL IN (...,...) ?

i.e. string[] cities = { "London", "Paris", "Seattle" }; var query = dataContext.Customers.Where (c => cities.Contains (c.City)); LINQ to SQL gives this error: NotSupportedException: Queries with local collections are not supported It should instead convert this query to: select * from customers where City in ('London', 'Paris', 'Seattle') Read More...
Published Tuesday, February 13, 2007 12:24 AM by MSDN Forums: LINQ Project General
Anonymous comments are disabled

Featured Item

This Blog

Sponsoring

Syndication