Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAdam Taylor
1,639 Pointscan't do it
I do everything it tells me and try again but it doesn't work
using System.Data.Entity.Migrations;
namespace Treehouse.CodeChallenges
{
public class Configuration : DbMigrationsConfiguration<Context>
{
public Configuration()
{
AutomaticMigrationsEnabled = false;
}
protected override void Seed(Context context)
{
// TODO Add student test data.
}
}
}
using System.Data.Entity;
namespace Treehouse.CodeChallenges
{
public class Context : DbContext
{
public Context ()
{
Database.SetInitializer<Context>(null);
}
public virtual DbSet<Student> Students { get; set; }
}
}
namespace Treehouse.CodeChallenges
{
public class Student
{
public int Id { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
}
}
1 Answer
Steven Parker
231,269 PointsIt doesn't look like you've written any code yet.
If you'd done "everything it tells you", there would be some code under the comment line "// TODO Add student test data.".
At least please give it a good-faith attempt and then ask for help if you have trouble, showing the code you have written.