EF 4.3.1の移行を使用する場合、移行または更新データベースを追加する必要があるたびにStartUpProjectパラメータを使用する必要があります。私はこれをやり続ける必要がないので、これをどこかに設定することはできますか?データプロジェクトをスタートアッププロジェクトとして設定したくありません。違いがあれば、私のコンテキストと移行は異なるプロジェクトにあります。 StartpProjectパラメータを使用していない場合にスローさEntity Frameworkの移行のStartUp Projectパラメータを設定する
例外:
update-database -verbose
Using NuGet project 'Data.Deployment'.
Using StartUp project ''.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
--- End of inner exception stack trace ---
at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)
at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
at System.Management.Automation.ComMethod.InvokeMethod(PSMethod method, Object[] arguments)
Exception has been thrown by the target of an invocation.
が、彼StartupProjectパラメータそれは例外をスローする –
真剣に?あなたは例外の出力全体を投稿できますか? –
は、元の投稿では上記の –