I wonder the simplicity of working with Microsoft SQL database server with .NET Entity Framework. Is there a possible way to use it with Oracle & MySQL database servers?
-
1Have you seen [this stack overflow](http://stackoverflow.com/questions/76488/using-mysql-with-entity-framework) question for MySQL? – Dirk Jun 27 '11 at 06:35
-
Not a big fan of the entity framework, maybe try NHibernate http://nhforge.org/ or SubSonic http://www.subsonicproject.com/ – ThatGuyInIT Jun 27 '11 at 06:47
-
@Sean would NHibernate and subsonic support this features? – Muneer Jun 27 '11 at 07:53
-
@Dirk it has some good point about MySQL – Muneer Jun 27 '11 at 07:58
3 Answers
You could use another ORM, like NHibernate which supports Microsoft SQL, Oracle, and MySQL, among many others.
If you want/need to stick with EF, there are already questions on SO about using it with MySQL and with Oracle.

- 1
- 1

- 228,013
- 71
- 433
- 510
-
-
@Muneer: Pretty much, yes. It supports all the database servers [mentioned here](http://nhforge.org/doc/nh/en/index.html#configuration-optional-dialects) (that list is a bit outdated, because it does support the most recent versions of SQL server and Oracle, even if they're not mentioned there). – R. Martinho Fernandes Jun 27 '11 at 10:25
-
Oracle Data Access Components for .NET (http://www.oracle.com/technetwork/topics/dotnet/downloads/oracleefbeta-302521.html) includes also Oracle Data Provider for .NET 4 11.2.0.2.40.
A nice tutorial how to use Model-First approach can be found at http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/dotnet/EntityFrameworkOBE/EntityFrameworkOBE.htm.
Good luck,
LM

- 11
- 1
A list of Oracle providers for Entity Framework can be found here:
Comparison of Entity Framework compatible providers for Oracle?
And for MySQL these are available:
http://www.mysql.com/products/connector/
http://www.devart.com/dotconnect/entityframework.html
http://uda.openlinksw.com/dotnet/

- 1
- 1

- 17,324
- 5
- 69
- 111