We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using Dev14 RC (beta4)
namespace AspNet5BookService.Models { public class Author { public int Id { get; set; } [Required] public string Name { get; set; } } }
3, Add BookServiceContext.cs class to Models folder - but forgot to set the namespace
using Microsoft.Data.Entity; using Microsoft.Data.Entity.Metadata; public class BookServiceContext : DbContext { private static bool _created = false; public DbSet<Author> Authors { get; set; } public DbSet<Book> Books { get; set; } protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { optionsBuilder.UseSqlServer(@"Server=(localdb)\mssqllocaldb;Database=BookServiceContext;Trusted_Connection=True;MultipleActiveResultSets=true"); } protected override void OnModelCreating(ModelBuilder builder) { } }
4, Add EF migration
ACTUAL Exception below. It took a little while to figure out that missing namespace was the issue
The text was updated successfully, but these errors were encountered:
This is no longer an issue as of RC1. You do still get an invalid using (tracked by #2467), but the migration is scaffolded.
using
Sorry, something went wrong.
No branches or pull requests
Using Dev14 RC (beta4)
3, Add BookServiceContext.cs class to Models folder - but forgot to set the namespace
4, Add EF migration
ACTUAL
Exception below. It took a little while to figure out that missing namespace was the issue
The text was updated successfully, but these errors were encountered: