【发布时间】:2017-08-21 11:11:01
【问题描述】:
在命令enable-migrations -force之后得到以下错误
我正在使用 EntityFramework Version=6.1.3
Exception calling "SetData" with "2" argument(s): "Type 'Microsoft.VisualStudio.ProjectSystem.VS.Implementation.Package.Automation.OAProject' in assembly
'Microsoft.VisualStudio.ProjectSystem.VS.Implementation, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' is not marked as serializable."
At \6.0.0\tools\EntityFramework.psm1:609 char:5
+ $domain.SetData('project', $project)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : SerializationException
Exception calling "SetData" with "2" argument(s): "Type
【问题讨论】:
-
有什么更新吗?你解决了这个问题吗?如果我的回答没有解决问题。我建议您可以发布更多关于如何设计 EF 代码优先模型的代码。
-
我解决了创建单独模型项目的问题
标签: entity-framework azure azure-functions