Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

CREATE DATABASE statement not allowed within multi-statement #2975


User avatar
0
bilalhaidar created

Hello, I ran the app without running update-database. Then I get this message: CREATE DATABASE statement not allowed within multi-statement transaction.

What's the reason behind this message and why I can't just count on EF to run the migrations automatically when app is running?

Thanks


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    You need to first run migrations to run your app. AspNet Zero is not designed in that way.

    Thanks.