【发布时间】:2017-06-06 06:21:57
【问题描述】:
当我执行update-database 命令时,它会显示此错误消息
System.ArgumentNullException:值不能为空。
参数名称:类型在 System.Activator.CreateInstance(类型类型、BindingFlags bindingAttr、Binder binder、Object[] args、CultureInfo 文化、Object[] activationAttributes)
在 System.Activator.CreateInstance(类型类型,Object[] args)
在 System.Data.Entity.Migrations.Extensions.ProjectExtensions.GetProjectTypes(项目项目,Int32 shellVersion)
在 System.Data.Entity.Migrations.Extensions.ProjectExtensions.IsWebSiteProject(项目项目)
在 System.Data.Entity.Migrations.Extensions.ProjectExtensions.GetTargetDir(项目项目)
在 System.Data.Entity.Migrations.MigrationsDomainCommand.GetFacade(字符串配置类型名称,布尔值 useContextWorkingDirectory)
在 System.Data.Entity.Migrations.AddMigrationCommand.Execute(字符串名称,布尔力,布尔忽略更改)
在 System.Data.Entity.Migrations.AddMigrationCommand.c__DisplayClass2.<.ctor>b__0()
在 System.Data.Entity.Migrations.MigrationsDomainCommand.Execute(操作命令)值不能为空。
参数名称:type”?
【问题讨论】:
标签: entity-framework types null