0
不知道为什么我得到这个错误。这是一个练习代码,所以我学习了实体框架代码的第一种方法。实体框架代码第一个错误
我在web.config
<add name="CompanyDBContext"
connectionString="server=.; database=CompanyDB;integrated security=true;"
providerName="System.Data.SqlClient"/>
<connectionStrings>
及以下类以下
public class CompanyDBContext: DbContext
{
public DbSet<Department> Departments { get; set; }
public DbSet<Employee> Employees { get; set; }
}
的错误是:提前
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
谢谢!