public static void Start()
        {
            MayLilyAppHost appHost = new MayLilyAppHost();
            appHost.Init();

            // Migrate the database schema and seed it with sample data.
            IDbMigrator migrator = appHost.Container.Resolve<IDbMigrator>();
            migrator.MigrateSchema();
            migrator.SeedData();
        }
Exemple #2
0
        public static void Start()
        {
            MayLilyAppHost appHost = new MayLilyAppHost();

            appHost.Init();

            // Migrate the database schema and seed it with sample data.
            IDbMigrator migrator = appHost.Container.Resolve <IDbMigrator>();

            migrator.MigrateSchema();
            migrator.SeedData();
        }