EF architecture ~ Migration of mysql database by migration, migrationmysql
Back to directory
Ef is indeed a powerful orm tool. It has played an outstanding role in both Object Modeling and Object Relations. The recent use of code first for database changes makes it even better, let's not talk about the support for sqlserver, because mssql itself is Microsoft's. Let's take a look at its support for mysql DATA changes!
Data Context Change: add-migration init
Mysql error:
This is because your data context does not add the mysql Migration Feature, because the default is sqlserver
/// <Summary> /// context object of the database named "LindDb" /// </summary> [DbConfigurationType (typeof (MySql. data. entity. mySqlEFConfiguration)] public partial class ERPContext: DbContext {}
After adding the Database Type feature to the context, our changes will be the same as the previous mssql!
Thank you for reading this article!
Knowledge is accumulation!
Back to directory