views:

45

answers:

2

Will Linq work against any database (i.e) MySQL,Sybase,Oracle,DB2?

+4  A: 

It depends what you mean by "LINQ".

LINQ to SQL will only work against SQL Server and SQL CE (or whatever it's called these days).

I believe that the Entity Framework (LINQ to Entities) will work with any database supported by ADO.NET... but I think that vendors can give more specific support which would no doubt mean better performance and quite possibly a wider range of translatable queries.

Then there are efforts like LINQ to NHibernate which again will work with any ADO.NET-compatible database.

Jon Skeet
And there's always rolling your own set of extension methods...
RCIX
A: 

LINQ supports only SQL Server.

However there is a LINQ provider for My sql here

Also, check this resource for more info.

tzup