Пример #1
0
        public object Post(ResetMovies request)
        {
            Db.CreateTable <Movie>(true);
            Db.SaveAll(Top5Movies);

            return(new ResetMoviesResponse());
        }
Пример #2
0
        public object Any(ResetMovies request)
        {
            //Executes the specified delegate against the configured database.
            Db.DropAndCreateTable <Movie>();
            Db.SaveAll(Top5Movies);

            return(new ResetMoviesResponse());
        }
Пример #3
0
		public object Post(ResetMovies request)
		{
            const bool overwriteTable = true;
            Db.CreateTable<Movie>(overwriteTable);
            Db.SaveAll(Top5Movies);

			return new ResetMoviesResponse();
		}
Пример #4
0
        public object Any(ResetMovies request)
        {
            //Executes the specified delegate against the configured database.
            Db.DropAndCreateTable<Movie>();
            Db.SaveAll(Top5Movies);

            return new ResetMoviesResponse();
        }
Пример #5
0
        public object Post(ResetMovies request)
        {
            const bool overwriteTable = true;

            Db.CreateTable <Movie>(overwriteTable);
            Db.SaveAll(Top5Movies);

            return(new ResetMoviesResponse());
        }
Пример #6
0
        public object OnPost(ResetMovies request)
        {
            ConfigureDatabase.Init(TryResolve <IDbConnectionFactory>());

            return(new ResetMoviesResponse());
        }
Пример #7
0
		public object Post(ResetMovies request)
		{
			ConfigureDatabase.Init(TryResolve<IDbConnectionFactory>());

			return new ResetMoviesResponse();
		}
Пример #8
0
 public void Any(ResetMovies request)
 {
     //Executes the specified delegate against the configured database.
     Db.DropAndCreateTable <Movie>();
     Db.SaveAll(Top5Movies);
 }
Пример #9
0
 public void Any(ResetMovies request)
 {
     //Executes the specified delegate against the configured database.
     Db.DropAndCreateTable<Movie>();
     Db.SaveAll(Top5Movies);
 }