Entity Framework 6.x - Code First 默认创建数据库的位置
在集成DbContext的派生类中的构造函数里,如果没有指定配置文件中的数据库连接字符串的name,默认就是:
Data Source=(localdb)\MSSQLLocalDB;Initial Catalog=ConsoleApplication4.EF6RecipesEntities;Integrated Security=True
注:数据库名称是ConsoleApplication4.EF6RecipesEntities

浙公网安备 33010602011771号