Integrating the SSDT database design tools with the new EF would be a great productivity enhancement for both teams and individual developers working on the "data side".
This will allow developers to design and implement databases with the most advanced and optimized techniques with the SSDT, having the results immediately available to the data access layer without any intermediate step.
I believe this would greatly enhance productivity of Visual Studio Users and - on the other side - leverage the value of both the SSDT and EF projects, allowing to benefit from both the integration of the SQL advanced development (which is not possible with automatictemplate translations) and the power of the Entity Framework, all integrated into the same IDE and environment.
We agree that we could do something in this area, at least making it nice in the UI to create a model from an SSDT project.
What would be needed to get progress on this item?
Are there parts of it that can be done by the community?
I second @japj's question. This seamless integration really needs to happen.
@japi & @codeangry & @Piggy69 - could you do some design specification, so the communtiy could consider if this was feasible and know the scope of it? Would a feature to scaffold a DbContext in a project based on a SDDT project in the same solution be a start?
Sorry, I'm the wrong person :) @japj is who you're looking for. But that's a nice coincidence, since i just had a Call open at MS because of bad EF DB performance over network. We did not find a solution, but could work around by implementing multithreading... So I wish you good luck with this feature request! Every improvement counts :)
I was hoping this would be available as well. I would expect something like this:
dnx ef dbcontext scaffold "C:\Repos\Project\src\database\database.sqlproj" EntityFramework.SqlServer
or even better would be a relative path from my asp.net project.
dnx ef dbcontext scaffold "..\database\database.sqlproj" EntityFramework.SqlServer
I have reverted on the feasability of this. You can just deploy the dacpac from the command line (or via VS) http://stackoverflow.com/questions/8371879/deploy-sql-server-database-project-via-command-line and then run scaffold command after
This need a tools for Visual Studio 2015. Last version EF tools is v6 for Visual Studio 2012 and Visual Studio 2013.
@mklemarczyk The latest (6.1.3) Tools are included with VS 2015
When will you guys going to work on this?
@mharisko this isn't going to be something we tackle in the near future as there are a lot of higher priority features ahead of it. BTW for folks that want to maintain a database in SSDT, it is currently possible to do that and generate the EF model from the database.
This feature is very important to me.
I'm sad to see a "propose-close" tag on this issue/feature that was previously deemed important and easily doable. The removal of the concept of a neutral model makes database-first development more critical than ever. It's needs to be bolstered, not dropped.
If you want more information about the relevance of this to my business, so you can either understand the broader importance or suggest workarounds, let me know.
I'm sad to see a "propose-close" tag on this issue/feature
Our team members may have gotten a bit aggressive with the propose-close tag. Don't panic yet. All it means is that we're going to take a second look at some of the older issues on our backlog and decided as a team whether it should remain on the backlog or be closed.
What I'd most like to see are two items:
Regarding 2. above, @rowanmiller mentioned the issue of performing schema upgrades here: https://github.com/aspnet/EntityFrameworkCore/issues/4321#issue-126931959 . It's fundamentally different, but it still needs to have a viable strategy. IMO it's a loosely-coupled EF concern, but not something that can be disregarded.
I'm not asking for magical bi-directional capabilities (although at one point EF6 was almost there before it buckled under its own weight ;) ). I just want better support for critical relational features, such as supporting a database with business-specialized relationships.
For anyone following this: EF Core Power Tools allows you to scaffold a Model directly from a SSDT project, without any intermediate "live" database: https://github.com/ErikEJ/EFCorePowerTools/wiki/Reverse-Engineering
There is also now a NuGet package to do this: https://www.nuget.org/packages/ErikEJ.EntityFrameworkCore.SqlServer.Dacpac
Most helpful comment
Our team members may have gotten a bit aggressive with the
propose-closetag. Don't panic yet. All it means is that we're going to take a second look at some of the older issues on our backlog and decided as a team whether it should remain on the backlog or be closed.