protected override void Seed(TipsterDbContext context) { // This method will be called after migrating to the latest version. // You can use the DbSet<T>.AddOrUpdate() helper extension method // to avoid creating duplicate seed data. }
private static void Main(string[] args) { using (var ctx = new TipsterDbContext()) { //var student = new Student() { StudentName = "Bill" }; //ctx.Students.Add(student); //ctx.SaveChanges(); } Console.WriteLine("Demo completed."); Console.ReadLine(); }