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

SQLite Add-Migration failing when OneToMany present #1209

Closed
vincentlecours opened this issue Dec 3, 2014 · 4 comments
Closed

SQLite Add-Migration failing when OneToMany present #1209

vincentlecours opened this issue Dec 3, 2014 · 4 comments
Assignees
Labels
closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. type-bug
Milestone

Comments

@vincentlecours
Copy link

I'm using nightly build 11712 in VS2013 and following instructions from the wiki for both Windows Store/Phone app and traditional .NET apps and can't get the migrations part working on SQLite. Every time I'm executing command "Add-Migration FirstMigration" I'm receiving this error message: "Operation is not valid due to the current state of the object.". From what I understand, either the migration can't access the SQLite DB or it has never tried to open and read it. Tried suggestion from issue #1058 to convert the WinRT path to normal path, without success.

@ig2r
Copy link

ig2r commented Dec 3, 2014

Try commenting out the three lines with the ... .OneToMany(...).ForeignKey(...) statement from the sample, rebuilding, and then re-running the Add-Migration command. Scaffolding OneToMany migrations for SQLite appears to be currently broken.

@vincentlecours
Copy link
Author

WOW! You're right! It did solve my problem! Thanks! OneToMany migrations on SQLite appears to be broken.

@rowanmiller
Copy link
Contributor

We've put SQLite work on hold (and removed from working branch), see our recent EF7 - Priorities, Focus, and Initial Release blog post for more details.

Moving to backlog until we come back to the ATS provider.

@rowanmiller rowanmiller added this to the Backlog milestone Dec 8, 2014
@rowanmiller rowanmiller changed the title Can't execute "Add-Migration" command when using SQLite as provider SQLite Add-Migration failing when OneToMany present Dec 8, 2014
@bricelam bricelam removed this from the Backlog milestone Apr 16, 2015
@rowanmiller rowanmiller added this to the 7.0.0 milestone Apr 20, 2015
@bricelam
Copy link
Contributor

This appears to be fixed now.

@bricelam bricelam modified the milestones: 7.0.0-beta5, 7.0.0 Apr 29, 2015
@ajcvickers ajcvickers added the closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. label Oct 15, 2022
@ajcvickers ajcvickers modified the milestones: 1.0.0-beta5, 1.0.0 Oct 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. type-bug
Projects
None yet
Development

No branches or pull requests

5 participants