forum

Home / DeveloperSection / Forums / Scaffolding error in asp.net mvc?

Scaffolding error in asp.net mvc?

Elena Glibart 3268 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; }
}

 


Updated on 10-Nov-2014

Can you answer this question?


Answer

1 Answers

Liked By