-
Notifications
You must be signed in to change notification settings - Fork 545
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
Update VS Tools to work with SDK-style projects #883
Comments
Currently we use NuGet packages (entityframework.codetemplates.csharp and entityframework.codetemplates.visualbasic) to distribute customizable versions of the T4 templates for the "code first from an existing database" option in the EF6 designer. We would need to have alternative ways to distribute them, e.g. add them as item templates in the designer's setup, or point customers to the code in docs, github, etc. |
Could EF 6 Power Tools help here?? |
@bricelam can you remind me (once more) what is the reason the T4 templates as VSIX wouldn't work anymore? |
We could distribute them as a VSIX, but I’d just make them part of the main installer if we did that. (Or part of the power tools if we think it’s too corner-case to add in the main package) I don’t think an item template (File > Add new item) isn’t a good fit because they need to go in a specific directory. On the other hand I doubt we can add a new item in the project right-click menu... |
...but Erik can. 😉 |
will this be implement soon or i should expect a long time |
Just to be clear, this is the place to if I want to follow the progress of getting EF 6.3 in a core project, to work with EDMX files? Any ETA? This is the only thing left, keeping us from going forward with our Blazor serverside project. :). I know there are workarounds, but we can wait for the real deal, if it's not too long ;). |
@Flem100 This is not planned for anytime soon. Instead, follow the documentation here: https://docs.microsoft.com/en-us/ef/ef6/what-is-new/#ef-designer-support |
@ajcvickers Thank you for that information! :) |
Not sure if this is the right issue to report this, but I have an problem with the ef6 commands after updating my MVC5 web-project to the new SDK style project, following the instructions here. Everything works, except that the tools look for app.config in stead of web.config because the IsWeb method in EntityFramework6.psm1 doesn't take this scenario into account. So I can work around it by creating an app.config file with the connectionstring information, but it would be nice if that wouldn't be necessary. |
@fretje That seems unrelated. Can you submit a new issue? |
We have a project that is using EF 6.4.4 with Database-First (EDMX files). We converted the project to SDK-style and are targeting net48. We are able to use the "Update Models from Database..." option and save the EDMX file. This correctly updates the EDMX file but does not run the T4 templates. Previously, before the SDK-style update, it did run the T4 templates automatically. We are able to manually run the T4 templates after updating the EDMX file but would prefer for it to run them automatically as it did in non-SDK-style projects. Is this issue going to address this or should this be a separate issue? |
This issue has been closed because EF6 is no longer being actively developed. We are instead focusing on stability of the codebase, which means we will only make changes to address security issues. See the repo README for more information. |
Breaking this out from #231 since it’s tied to VS releases, not .NET Core releases.
We’ll need to update the designer to work with the CPS-based project system used by SDK-style csproj (and vbproj) files.
The text was updated successfully, but these errors were encountered: