Quando si utilizzano migrazioni EF 4.3.1 ogni volta che è necessario aggiungere una migrazione o aggiornare il database, è necessario utilizzare il parametro StartUpProject. Posso impostarlo da qualche parte quindi non devo continuare a farlo? Non voglio impostare il mio progetto di dati come progetto di avvio. Il mio contesto e le migrazioni sono in progetti diversi se questo fa la differenza.Impostare il parametro del progetto di avvio per le migrazioni di Entity Framework
eccezione generata quando non si utilizza il parametro StartpProject:
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.
ho fatto, ma se non specificare t Il parametro StartupProject genera un'eccezione –
Seriamente? Puoi pubblicare l'intero output dell'eccezione? –
aggiunto nell'eccezione nel post originale sopra –