-
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
Fix getting started app #3079
Fix getting started app #3079
Conversation
Create the database with EnsureCreated instead of with Migrations. Fixes #3078
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment on issue.
This reverts commit b4e1cdf.
@@ -9,7 +9,7 @@ public class BloggingContext : DbContext | |||
public DbSet<Post> Posts { get; set; } | |||
|
|||
protected override void OnConfiguring(DbContextOptionsBuilder options) | |||
=> options.UseSqlite("Data Source=blogging.db"); | |||
=> options.UseSqlite(@"Data Source=C:\blogging.db"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The VS Mac tab is available but probably not what you want. Need either code comments or note before code for mac/linix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does this note look?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can also add a comment here in code what to use if your are using mac/linux.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, it turns out even folks reading localized content prefer helpful english code comments. I hate the chrome of a note. I'd move this to the code comments and remove the note. Note chrome detracts from the flow of the article.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed to note into a code comment
Fixes #3078