----------------配置每次加载应用程序,重新创建数据库usingSystem.Data.Entity;
protectedvoidApplication_Start()
{
//配置每次加载应用程序,重新创建数据库
Database.SetInitializer(newDropCreateDatabaseAlways<MvcApplication2.Models.StoreManagerDB>());
Are..
分类:
数据库 时间:
2014-11-29 07:19:28
阅读次数:
264