0
コマンドの後に以下のエラーを取得して「SetDataメソッド」を呼び出すenable-migrations -force
Azureの機能:有効-移行例外「2」引数(複数可)
私はEntityFrameworkバージョン= 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コードの最初のモデルをどのようにデザインするかについて、より多くのコードを投稿することをお勧めします。 –
私は問題を作成する別のモデルプロジェクトを作成する –