Entity Framework 6.x - Code First 默认创建数据库的位置

在集成DbContext的派生类中的构造函数里,如果没有指定配置文件中的数据库连接字符串的name,默认就是:

Data Source=(localdb)\MSSQLLocalDB;Initial Catalog=ConsoleApplication4.EF6RecipesEntities;Integrated Security=True

 

注:数据库名称是ConsoleApplication4.EF6RecipesEntities

posted @ 2015-10-09 23:43  海阔天空XM  阅读(444)  评论(0)    收藏  举报