Esempio n. 1
0
        private static void InitDatabase()
        {
            if (DatabaseContext.Exists())
            {
                Console.WriteLine("Database already exists.");
                return;
            }

            Console.WriteLine("Creating database...");
            DatabaseContext.CreateDatabase();

            Console.WriteLine("Seeding shops...");
            ShopsSeeding.Seed();

            Console.WriteLine("Seeding Meret Market...");
            MeretMarketItemSeeding.Seed();

            Console.WriteLine("Seeding Mapleopoly...");
            MapleopolySeeding.Seed();

            Console.WriteLine("Seeding events...");
            GameEventSeeding.Seed();

            Console.WriteLine("Seeding card reverse game...");
            CardReverseGameSeeding.Seed();

            Console.WriteLine("Database created.");
        }
Esempio n. 2
0
        private static void InitDatabase()
        {
            if (DatabaseContext.Exists())
            {
                Console.WriteLine("Database already exists.");
                return;
            }

            Console.WriteLine("Creating database.");
            DatabaseContext.CreateDatabase();

            Console.WriteLine("Seeding shops.");
            ShopsSeeding.Seed();

            Console.WriteLine("Seeding Mapleopoly");
            MapleopolySeeding.Seed();

            Console.WriteLine("Seeding events");
            GameEventSeeding.Seed();

            Console.WriteLine("Database created.");
        }