Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

asp.net core migration isn't creating database

$
0
0

Hi:

I'm learning asp.net core and have run into a problem with migrations.  from the cli I can enter:

dotnet ef migrations add InitialCreate

it appears to work.  Then I can enter

dotnet ef migrations add IdentityClasses 

and that appears to work, . . . . meaning I can see the the files created in the Migrations folder.  The problem is that I can't find the database in my sql server object Explorer window.  I can't see it in ssms either.

My connection string is "Server=(localdb)\\MSSQLLocalDB;Database=GLCoreDB;Trusted_Connection=True;MultipleActiveResultSets=true;"

When I look at my SQL Server Object Explorer their is a (localdb)\MSSQLLocalDB (SQL Server 13.0.42-2 - xxxxx\sssss)

What happened to the database?


Viewing all articles
Browse latest Browse all 9386

Trending Articles



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