问题描述
我正在控制台中尝试 enable-migrations
但收到此错误。
我收到此错误,请帮助任何人。
The type initializer for 'System.Data.Entity.Internal.AppConfig' threw an exception.
这是我的 program.cs 文件
public class Employee
{
public int EmpID { get; set; }
public string Title { get; set; }
public DateTime Date { get; set; }
}
public class BlogDbContext : DbContext
{
public Dbset<Employee> Employees { get; set; }
}
class Program
{
static void Main(string[] args)
{
}
}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)