示例#1
0
        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.
        }
示例#2
0
        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();
        }