Set working directory when Seed data
-
26-10-2019 - |
Question
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.
Solution
I answered your question there http://social.msdn.microsoft.com/Forums/en-US/adodotnetentityframework/thread/437709c0-6933-4ccb-8995-02438500b68b
:)
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow