Entity Framework 4.2 Code First DBMS support - entity-framework

What DB Management Systems does EF 4.2 Code First support?
I'd like to use Code First with MySQL and Oracle. Do I have to download extra things?
Thanks!!

It supports the most of the popular DBMS's like Oracle, MySQL, PostgreSQL and SQLite other than SQL Server. Yes you have to download database connectors for them. Here is a good tutorial to get you started.

Related

Migrating from ef6 to postgresql in visual studio

I am new to PostgreSQL and as a company, we have found out that PostgreSQL is better than SQL Server on processing online transactions and we have reached a conclusion to migrate from SQL Server to PostgreSQL.
I have bought DBConvert to successfully migrate the database from MS SQL Server to PostgreSQL and that is just fine, all data has been transferred. Now, the problem comes when I now have to move my visual studio from EF to PostgreSQL. I have researched how best I could really do this. This Article is not detailed enough:
Migrate EF6 database-first from SQL Server to PostgreSQL
An several aren't detailed enough. Can anyone assist me in a step-by-step approach on how best I could do this?
Well, I finally found that the only way to successfully move from Visual Studio Entity Framework to PostgreSQL, you have to use the Code First Approach.
There is no scaffolding solution I found to do the conversion. You will have to install the Npgsql Provider, change the connection string to point to PostgreSQL, and also install the Npgsql.EntityFramwework and make sure your models have been changed accordingly.

Can MySQL Workbench Forward Engineer (Generate DDL) for Relational Databases other than MySQL (such as MS SQL Server, PostGreSQL, Oracle, etc.)

I was under the impression that MySQL Workbench could be used to generate DDL for relational databases other than MySQL.
This question from 2010 says no, the only way to do it is to generate DDL for MySQL and then manually convert it.
Has there been any changes in the meantime? Any plugins?
Thank you -- Matthew Moisen
I'm a MySQL Workbench dev and I can tell you firsthand that nothing have changed about this.

Use Postgresql as a datasource for Microsoft Analysis Services

Has anyone managed to use Postgresql as a datasource for SSAS? The Postgresql .NET connector seems promising, but the SSAS view wizard does not seem to be able to see the tables in the database.
Try using the ODBC connector. I've had success getting other tools to connect to PG using it. The EnterpriseDB installers not only include a well packaged, working version of PG for windows, they include working, correctly installed drivers.
http://www.enterprisedb.com/products-services-training/pgdownload
try pg_bulkload for load from via c# & from mssql to pgsql
copy & bcp (ssis) for second direction (pgsql->ssas)
242
It is actually possible to hack the Postgresql .NET connector and implement a "MSSQL compatibility mode", where the [ and ] around tables and schema names are removed. Using this, the list of tables does not appear in MS SSAS, but it is possible to replace them by views.

Using embedded firebird database with .NET

I want to use Embedded FireBird with .NET 3.5. I have few queries:
(1) Are there any new developments done on the embedded version by the FireBird community?
(2) Are there any database file repair & optimize (shrink etc.) features in it?
(3) Does it supports Triggers, Foreign Keys, PL/SQL type of things etc.?
(1) Are there any new developments
done on the embedded version by the
FireBird community?
Yes, both the embedded and the client-server version are very active projects.
Using the same embedded version dll for ADO.NET for example, you can use the most recent version of the firebird engine dlls, even if the ADO.NET Firebird provider is not build for that version, but for a previous.
Check the issue tracker here: http://tracker.firebirdsql.org/secure/Dashboard.jspa
(2) Are there any database file repair
& optimize (shrink etc.) features in
it?
Yes, as described here: http://www.firebirdfaq.org/faq324/. You need to install the client-server version of firebird to use GFIX and GBAK from the command line. It is just a few megabytes.
Firebird does not have a "Compacting" feauture to shrink the database. You need to backup and then restore the database to do this. However you can use a firebird database for years without backup/restore (if you are lucky and the hard disk does not die). The only thing that you might need to do is to recalculate all indeces selectivity as described here: http://www.firebirdsql.org/dotnetfirebird/blog/2005/03/improving-query-performance-through.html
(3) Does it supports Triggers, Foreign
Keys, PL/SQL type of things etc.?
Yes. The 2.5 version of the embedded engine also supports accessing the same database file from different proccess at the same time.
Answering your questions:
The Embedded version is like a normal Firebird but encapsulated in a DLL and with some minor limitations. The Firebird Team just released some days ago the 2.5 version of SuperServer, Classic and Embedded flavors. More info at Embedded Firebird Server and Firebird website.
There are tools to repair and optimize databases. Check How to repair a corrupt Firebird database
Firebird is SQL:2003 conformant as stated in Firebird: SQL Conformance. It has triggers, foreiggn keys and stored procedures.
Hope that helps

Good OleDB/ODBC provider for PostgreSQL

I'm in need of a functional OleDB data provider for PostgreSQL. It should be similar to the ODBC provider for MySQL. See http://dev.mysql.com/downloads/connector/odbc/5.1.html
The postgres software catalog has some providers on there.
dotConnect for PostgreSQL (from Devart) offers a pretty good one. It is fast and works. The free version will give you your basic ADO.net support, the pay offers everything else. ODBC doesn't have a free version.
http://www.devart.com/dotconnect/postgresql/
edit
Adding the direct link to the ODBC connector as it is on a separate page.
https://www.devart.com/odbc/postgresql/
If you want to check the last version of ODBC for PosgreSQL :
http://www.postgresql.org/ftp/odbc/versions/
Enter in the "msi" folder for the installer.
But be careful, when you are using ODBC, there is a 32bits and a 64bits version. So choose the right one.