17

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?

11 Answers 11

12

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.

4
10

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

4

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.

4

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.

4

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.

1
  • I have tried DBLinq. It is not the quite the same syntax as Linq to SQL, but it is close enough. Commented May 14, 2009 at 19:31
3

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.

3

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

2

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

1

Look in codeplex: Linq To Oracle project

0

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.

0

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.