输入banner图图片脚本导航/分类

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

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

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

 

注:数据库名称是ConsoleApplication4.EF6RecipesEntities

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

标签: