Пример #1
0
        protected override void Seed(SE214L22.Data.AppDbContext 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.
            SeederManager.Seed(context);
        }
        public void SeederManagerRunTest()
        {
            var options = new DbContextOptionsBuilder <OlpContext>()
                          .UseInMemoryDatabase(databaseName: "Add_writes_to_database_SeederManager")
                          .Options;

            using (var context = new OlpContext(options))
            {
                var SeederManager = new SeederManager(context);
            }
        }