在配置文件中添加:
当然啦,项目中要引用Mysql.Data.MySQLClient.dll了
在 System.Threading.ThreadHelper.ThreadStart()</StackTrace><ExceptionString>System.InvalidOperationException: The model backing the 'DBtest' context has changed since the database was created. Either manually delete/update the database, or call Database.SetInitializer with an IDatabaseInitializer instance. For example, the DropCreateDatabaseIfModelChanges strategy will automatically delete and recreate the database, and optionally seed it with new data.
出现这个错误
可能有时候要更改一些配置
那需要改哪里设置啊
@雪松--努力:这个我就说不清楚了,我刚接触数据库没多久,网上搜一下看看,根据错误信息