Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using LINQ to SQL with Oracle [closed]

i know that linq to sql is really "LINQ to SQL Server". I also read that one can build his own LINQ Provider in order to connect to other database systems like oracle or mysql. my question is how to build a LINQ Provider and what are the advantages and disadvantages of using LINQ to SQL on databases other than SQL Server.

like image 740
Ali Tarhini Avatar asked Nov 25 '10 11:11

Ali Tarhini


People also ask

Can we use LINQ with Oracle Database?

To execute a LINQ query against an Oracle database, you will add a reference to an Entity Framework assembly. You will then create the code to execute a LINQ query and return the results to the console window.

Is LINQ to SQL still supported?

LINQ to SQL was the first object-relational mapping technology released by Microsoft. It works well in basic scenarios and continues to be supported in Visual Studio, but it's no longer under active development.

Does Entity Framework work with Oracle?

Yes. See this step by step tutorial of Entity Framework, LINQ, and Model-First for the Oracle database (11G), and using Visual Studio 2010 with .

Should I use LINQ to SQL?

More importantly: when it comes to querying databases, LINQ is in most cases a significantly more productive querying language than SQL. Compared to SQL, LINQ is simpler, tidier, and higher-level. It's rather like comparing C# to C++.


1 Answers

LINQ to SQL doesn't support Oracle, but the Entity Framework has a more open provider model, and there are Oracle drivers which support EF.

So basically, for non-SQL Server databases I would ignore LINQ to SQL completely and look to EF. LINQ to SQL simply wasn't built with a provider model for extensibility to arbitrary databases.

like image 185
Jon Skeet Avatar answered Sep 22 '22 23:09

Jon Skeet