SqlException: Invalid object name Person.Person
I'm following this tutorial to create a sample API in ASP.NET Core 3.1 using Visual Studio 2019 project templates, but since I'm using the AdventureWorks (2019) database, I've had to make some changes. Database Context has been scaffolded like this. public partial class AdventureWorks2019Context : DbContext { public AdventureWorks2019Context(){} public AdventureWorks2019Context(DbContextOptions<AdventureWorks2019Context> options) : base(options){} . . . public virtual DbSet<Person> Person { get; set; } . . . } And then I have registered this context in startup.cs like this: public void Configu
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.