Skip to content
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

"#!connect mssql create-dbcontext" is hard linked against Microsoft.EntityFrameworkCore.SqlServer version 6.0.0 #2355

Closed
3 of 17 tasks
palsskv opened this issue Oct 17, 2022 · 4 comments

Comments

@palsskv
Copy link

palsskv commented Oct 17, 2022

Describe the bug

When creating a context from a larger schema using #!connect mssql --create-dbcontext, I experience the bug referenced in issue #26496. The execution is aborted with a System.InvalidOperationException. The issue is marked as resolved in v6.0.1.

If I install a higher version of Microsoft.EntityFrameworkCore.SqlServer, #!connect mssql --create-dbcontext returns an error:
"Error: Microsoft.EntityFrameworkCore.SqlServer version 6.0.0 cannot be added because version 6.0.1 was added previously."

Please complete the following:

Which version of .NET Interactive are you using? (In a notebook, run the #!about magic command. ):
Version: 1.0.350406+612aa40cba7d6a1f734272f71657a65561394752
Library version: 1.0.0-beta.22504.6+612aa40cba7d6a1f734272f71657a65561394752
Build date: 2022-10-11T15:25:28.7041006Z

  • OS
    • Windows 11
    • Windows 10
    • macOS
    • Linux (Please specify distro)
    • iOS
    • Android
  • Browser
    • Chrome
    • Edge
    • Firefox
    • Safari
  • Frontend
    • Jupyter Notebook
    • Jupyter Lab
    • nteract
    • Visual Studio Code
    • Visual Studio Code Insiders
    • Visual Studio
    • Other (please specify)

Screenshots

image

@brettfo
Copy link
Member

brettfo commented Oct 18, 2022

Fixed in #2360.

@brettfo brettfo closed this as completed Oct 18, 2022
@kemmis
Copy link

kemmis commented Nov 14, 2024

I'm now getting the same error: Error: Microsoft.EntityFrameworkCore.SqlServer version 8.0.8 cannot be added because version 8.0.10 was added previously.

I'm using the latest Microsoft.DotNet.Interactive.SqlServer, 1.0.0-beta.24563.1

Anyone have a fix for this?

@jonsequitur
Copy link
Contributor

We should be able to publish this fix later today.

@kemmis
Copy link

kemmis commented Nov 14, 2024

@jonsequitur I created a bug for this here: #3763

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants