Quantcast
Channel: ADO.NET, Entity Framework, LINQ to SQL, NHibernate
Viewing all articles
Browse latest Browse all 1698

Asp.Net Core migration path error

$
0
0
<div class="postcell post-layout--right"> <div class="post-text" itemprop="text">

I am trying to create a DB from EF Core migration. With this connection string:

"ConnectionStrings": {"DefaultConnection": "Server=(localdb)\\MSSQLLocalDB;Database=BookList_RazorDemo;Trusted_Connection=True;MultipleActiveResultSets=True"
}

The add-migration command on the PMC works fine, but when I execute update-database it give me an error saying that it cannot open or create the physical file 'C:\Users\[User]BookList_RazorDemo.mdf', the users name and the mdf file name are not separated by .

Is there a parameter I can specify with the update-database command to set my output path for the mdf file, or where can I set the output directory otherwise?

Thank you in advance.

</div> </div>

Viewing all articles
Browse latest Browse all 1698

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>