本书中我们使用数据库初始化器在每次模型变化时来删除和重建数据库。
Throughout this book we have used database initializers to drop and recreate the database every time the model changes.
当移动域的时候,你需要重建数据库。然后你需要将你的文件上传到新的位置上。
When moving the domain, you will need to restore the database. You then need to upload your files to their new location.
实体框架有一个很好的特性,它让你在(应用程序)启动时填充数据库,并在模型发生修改时重建数据库。
Entity Framework has a nice feature that lets you populate the database on startup, and automatically recreate the database whenever the models change.
应用推荐