I am trying to update my repository to EF5 but have encountered a few errors. I\'ve taken a look around stackoverflow for similar errors discovered a few questions/answers b
EF may not be able to pick up the entity types you have declared. Override the OnModelCreating and add the User entity to model.
public class AccountContext : WebModelContext
{
private DbSet _users;
public AccountContext()
: base()
{
_users = Set();
}
public DbSet Users
{
get { return _users; }
}
protected virtual void OnModelCreating(DbModelBuilder modelBuilder)
{
modelBuilder.Entity();
}
}