Users Pricing

forum

home / developersection / forums / scaffolding error in asp.net mvc?

Scaffolding error in asp.net mvc?

Elena Glibart 3680 10 Nov 2014
I'm going in circles with either an in valid context type or undefined entity key. I have attached a copy of the longer error message. Just trying to create a test application that is connected to an existing db.

Scaffolding error in asp.net mvc?

Here is the code - thanks in advance

    public class TestPerson
{
    int ID { get; set; }
    string FirstName { get; set; }
    string LastName { get; set; }
    string Hair { get; set; }
    string Race { get; set; }
    string Measurements { get; set; }
}
public class TestPersonContext : DbContext
{
    public DbSet<TestPerson> TestPersons { get; set; }
}

 


1 Answers