Question

I can connect with the DataContext to the Oracle database however I get errors in running the query against the oracle database. I looked at the SQL generated and it is for MSSQL and not Oracle PSQL.

Does anybody know of a decent easy to use wrapper to use LINQ against an Oracle Database?

Was it helpful?

Solution

No, LINQ to SQL is very much MS SQL only - think of it as a client driver.

Microsoft is/was helping Oracle and DataDirect develop providers for Oracle and other non-MS database servers.

OTHER TIPS

We use the OraDirect driver from Devart. It includes ADO.NET Entity framework support. You can download a trial version here. You may then use LINQ to entities or entity SQL on top of this.

The pricing of this is quite developer friendly, you pay per developer seat and you may use it however you like.

Another big advantage of this driver is that you can use it without installing an Oracle client, this is a big plus and worth the price alone.

@Greg: We evaluated the datadirect drivers as well, but the performance was poor and cost astronomical.

Edit: It seems DevArt announced a beta with LINQ support recently

One thing you might look into is that there is now LINQ to Entities, which leverages the MS Entity Framework, which I believe is DB agnostic. I'm still looking into how it works myself, but if you could create an ADO.NET Data Entity that interfaces with Oracle, you could then use LINQ against that Entity.

There's also Lightspeed which has a per-organization (not per-developer) license scheme and seems to have a pretty solid documentation library and a free trial version (up to 8 entities). I'm checking this out presently.

After a long search I found DbLinq and should do the trick. I am going to try it myself. I came across your question because I was searching for the same solution. Hope it helps.

Do look at Linq to entities though. I have a datareader populate a collection of objects that are mapped to the oracle table. I can use linq to query that collection in very powerful, simple, and easy ways. I love it. Highly recommend.

Try Devart LinqConnect. This product allows you to work with Oracle, etc.

Why not try ALinq ? http://www.alinq.org

Look in codeplex: Linq To Oracle project

Not an easy way, at least until a good provider is produced.

Really MS should provide at least an OLEDB Linq provider. After all, Linq to Sql is basically an implementation of IQueryable with designer support.

Another cross-database solution that works fairly well across Oracle, SQLite, MySQL and SQL Server is eXpress Persistent Objects

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top