-
Notifications
You must be signed in to change notification settings - Fork 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
Error in EF Tutorial #3285
Comments
Did you ever figure this out? I was having the same issue. |
Nope. I'm looking for a better tutorial. |
Is that a valid path for your OS? That's a windows path. change |
I am on Windows, so that should be a valid path.
I am not an expert on Entity Framework, nor on GitHub. I was just trying to follow the tutorial on “https://docs.microsoft.com/en-us/ef/core/get-started/overview/first-app?tabs=visual-studio”, but it didn’t work. So I entered my feedback as requested at the bottom of that page. I didn’t see anything in the tutorial about any other changes I would need to make.
Jeff Nygren
Software Engineer II
From: Rick Anderson ***@***.***>
Sent: Monday, June 7, 2021 6:53 PM
To: dotnet/EntityFramework.Docs ***@***.***>
Cc: Jeff Nygren ***@***.***>; Author ***@***.***>
Subject: Re: [dotnet/EntityFramework.Docs] Error in EF Tutorial (#3285)
Is that a valid path for your OS? That's a windows path.
change => options.UseSqlite(@"Data Source=C:\blogging.db"); to
=> options.UseSqlite(@"Data Source=blogging.db");
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_dotnet_EntityFramework.Docs_issues_3285-23issuecomment-2D856334677&d=DwMCaQ&c=gF1t3YcGliJxvhK2Sl_RWGpK0dUxv3kAzNl4XNctI-U&r=hBBnp9kfi9sWQ9BA_gPiIRKJ_qEIjEProl5F5kGeA8o&m=CWPVND5BZLllNvg9LVQe3w4CxKbg0w05OJ0WzMOT2fY&s=3Odwdgph4vorS0WA6HOvxupCU7Eg3TQQHK_rwLlrj9w&e=>, or unsubscribe<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_ANFPIPURUBOOMDIIWFYRA73TRVLUJANCNFSM46H72ZEA&d=DwMCaQ&c=gF1t3YcGliJxvhK2Sl_RWGpK0dUxv3kAzNl4XNctI-U&r=hBBnp9kfi9sWQ9BA_gPiIRKJ_qEIjEProl5F5kGeA8o&m=CWPVND5BZLllNvg9LVQe3w4CxKbg0w05OJ0WzMOT2fY&s=wehbjrTCmgk_VX8bM0fkGdkF7bsaaeg_0XXJ8GVZ_Cg&e=>.
|
@JN-LT Is it possible that you don't have permissions to create files in the root of C:? |
@ajcvickers I think we should use an OS independent and reliable path AND COMMENT ALTERNATIVES |
The issue is that there is no good general path, that cannot be misunderstood. Like: C:\Users<YourName><FolderName> Opens up for a universe of misunderstandings. |
Or add code that detects the platform and sets a suitable connection string? 😂 |
Or just put a dummy path which never works so user can put a path which they have access to in the OS they have. |
Do I just ignore the "SQLite Error 14: 'unable to open database file'" error message, or was that not supposed to happen?
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: