-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EnsureCreated not working when exist a Database Diagrams on SQL Server #14890
Comments
@m4ss1m0g Curious: what's your intended workflow around using |
I already know EF6 and the migration tools, I use |
@m4ss1m0g So do you ever call |
The problem is on
|
@m4ss1m0g I understand what is happening; that's not the point of this conversion. The current behavior is by-design; it's possible we could change that, but to do so the end-to-end experience needs to make sense. Since usually |
@ajcvickers I did not know |
Note from triage: it makes sense to ignore system tables when considering whether or not the database is "empty", even though |
Should the milestone not be updated? |
Updated tags. |
Description
When use SQLServer with database diagrams, the EnsureCreated command fail without any error.
Steps to reproduce
Define a simple DbContext with a single Entity
Open SSMS and create a new database diagrams (is sufficient to create the table sysdiagrams) and create an empty diagram
Launch the EnsureCreated command
Check the SSMS and No Tables are created
Workaround
DROP table sysdiagrams under System Tables node
Further technical details
EF Core version: 2.2.2
Database Provider: Microsoft.EntityFrameworkCore.SqlServer
Operating system: Windows 10
IDE: Visual Studio 2017 15.9.7
The text was updated successfully, but these errors were encountered: