I run project in debug and have error. Additional information: CREATE DATABASE statement not allowed within multi-statement transaction. What I do wrong?
5 Answer(s)
-
0
for solve this problem you can follow one of this approach:
1- Create empty database manually
2- run update-database command in nugget packager -
0
I am having the same problem. I have manually created the database in my localhost, where my connection string says it should be. I try to run the "Update-database" in the entityFramework project as show in the pictures. What is going wrong??
-
0
Hi,
I think localhost and "(localDb)\MSSQLLocalDb" is not same.
Can you try to use "(localDb)\MSSQLLocalDb" instead of localhost in your connectionString ? -
0
i had this problem too and i've solved issued Update-Database command.
Any idea what this problem is caused from? -
0
Hi,
There might be more than one reason.
It's really hard to understand only with that error message ?Do you still have the problem ?
We can try to solve it, if you still having the problem.