Back to Catalog
EF is a really powerful ORM tool that works well both in entity modeling and in entity relationships, and the recent code first has made it easier for me to use database changes, not to mention SQL Server support, because MSSQL itself is Microsoft's, We mainly look at its support for MySQL data changes!
Changes to the data context: Add-migration init
MySQL error has occurred:
This is because your data context does not add the MySQL migration feature, because the default is SQL Server, hehe
/// <summary> /// LINDDB The context object for this database /// </summary> [Dbconfigurationtype (typeof(MySql.Data.Entity.MySqlEFConfiguration))] Public Partial class Erpcontext:dbcontext {}
After adding the attributes of the database type we added to the context, our changes are just like the previous MSSQL!
Thank you for reading!
Knowledge lies in Accumulation!
Back to Catalog
EF architecture ~migration Migration of MySQL databases