Ejemplo n.º 1
0
        public async Task <ActionResult> Run()
        {
            // Remove all records from the collection
            await context.Database.ExecuteSqlRawAsync("DELETE TABLE Products;");

            // populate catalog
            await context.BulkInsertAsync(Generate());

            return(StatusCode(StatusCodes.Status201Created));
        }