EF will MSSQL replaced POSTRESQL

Premise Summary: The project in EDMX MSSQL DB FIRST already exists, I want to convert the project into a database POSTGRESQL.

Solution:

1, the new project, connect MSSQL model, derived from the database with CODE FIRST.

2, the resulting modified ConnectionString connected into a connection configuration of POSTGRESQL.

3, coding DbContext.Database.CreateIfNoExists (), to generate a database operation.

4, contrast differences.

Guess you like

Origin www.cnblogs.com/seltion/p/11300968.html