Feedback
Did this article resolve your question/issue?

   

Article

What is the location of the "__MigrationHistory" table created by the ADO.Net drivers

Information

 
TitleWhat is the location of the "__MigrationHistory" table created by the ADO.Net drivers
URL NameWhat-is-the-location-of-the-MigrationHistory-table-created-by-the-ADO-Net-drivers
Article Number000179609
EnvironmentProduct: Connect for ADO.Net all drivers
Version: All supported versions
OS: Windows
Database: All supported databases
Application: All supported applications
Question/Problem Description
What is the location of the "__MigrationHistory" table created by the Conect of ADO.Net drivers
Steps to Reproduce
Clarifying Information
Referencing the Connect for ADO.Net documentation:
"Using Multiple Entity Framework Versions Against the Same Database. A single database can use multiple versions of the Microsoft ADO.NET Entity Framework: 5.0 (EF5) and 6.0 (EF6). However, when you switch between EF5 and EF6 applications against the same database, you will receive an error when you try saving to the database. The error occurs due to the difference between the structure of the "__MigrationHistory" table used by EF5 and EF6. To use EF5 and EF6 applications against the same database without any errors, run the following command in the database:
drop table "__MigrationHistory" ".

Where do you find the "__MigrationHistory" table? 
Error Message
Defect Number
Enhancement Number
Cause
Resolution
The Connect for ADO.Net provider creates the "__MigrationHistory" table in the database being used by the application.

The “__MigrationHistory” table will only be created if Code First or Code First with Migrations workflows are used.

Note if you are using Database First or Model First workflows, the “__MigrationHistory” will not be created on the back-end.
Workaround
Notes
For additional information refer to the Connect for ADO.Net documentaion.
Last Modified Date11/27/2019 2:16 PM
Files
Disclaimer The origins of the information on this site may be internal or external to Progress Software Corporation (“Progress”). Progress Software Corporation makes all reasonable efforts to verify this information. However, the information provided is for your information only. Progress Software Corporation makes no explicit or implied claims to the validity of this information.

Any sample code provided on this site is not supported under any Progress support program or service. The sample code is provided on an "AS IS" basis. Progress makes no warranties, express or implied, and disclaims all implied warranties including, without limitation, the implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample code is borne by the user. In no event shall Progress, its employees, or anyone else involved in the creation, production, or delivery of the code be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample code, even if Progress has been advised of the possibility of such damages.