Entity Framework 6.x

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

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

注:数据库名称是ConsoleApplication4.EF6RecipesEntities

原文地址:https://www.cnblogs.com/wanghaibin/p/4865517.html