Set working directory when Seed data
-
26-10-2019 - |
Pergunta
I'm trying to insert some sample data (Seed data) using EF 4.3 Migration.
The problem is I want to read data from xml file. But when I run Update-Database
cmdlet, I got error like Could not find a part of the path 'C:\SampleData\'
.
Is there anyway to set the working directory to current project folder when I run Update-Database
from my powershell console.
Thanks in Advance.
Solução
I answered your question there http://social.msdn.microsoft.com/Forums/en-US/adodotnetentityframework/thread/437709c0-6933-4ccb-8995-02438500b68b
:)
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow