title: Get method does not exist in the current context
body: <p>Beeing new to ASP.NET I'm following this <a href="http://www.asp.net/web-forms/overview/getting-started/getting-started-with-aspnet-45-web-forms/create_the_data_access_layer" rel="nofollow">tutorial at www.asp.net</a>. But I get a problem when writing the <code>public class ProductDatabaseInitializer</code></p>
  
  <p>I wrote the ProductContext.cs class as follow</p>
  
  <pre><code>using System.Data.Entity;
  
  namespace WingtipToys.Models
  {
  public class ProductContext : DbContext
  {
      public ProductContext() : base("WingtipToys")
      {
  
      }
      public DbSet&lt;Category&gt; Categories { get; set; }
      public DbSet&lt;Product&gt; Products { get; set; }
  }
  }
  </code></pre>
  
  <p>But get error writing the ProductDatabaseInitializer.cs:</p>
  
  <pre><code>using System.Collections.Generic;
  using System.Data.Entity;
  
  namespace WingtipToys.Models
  {
  public class ProductDatabaseInitializer : DropCreateDatabaseIfModelChanges&lt;ProductContext&gt;
  {
      protected override void Seed(ProductContext context)
      {
          GetCategories().ForEach(c =&gt; context.Categories.Add(c));// &lt;-here
          GetProducts().ForEach(p =&gt; context.Products.Add(p));    // &lt;-here
      }
  }
  }
  </code></pre>
  
  <p>On the <code>GetCategories()</code> and the <code>GetProducts()</code> I get error "does not exist in the current context". </p>
  
  <p>The Category class:</p>
  
  <pre><code>using System.Collections.Generic;
  using System.ComponentModel.DataAnnotations;
  
  namespace WingtipToys.Models
  {
  public class Category
  {
      [ScaffoldColumn(false)]
      public int CategoryID { get; set; }
  
      [Required, StringLength(100), Display(Name ="Name")]
      public string CategoryName { get; set; }
  
      [Display(Name ="Product Description")]
      public string Description { get; set; }
  
      public virtual ICollection&lt;Product&gt; Products { get; set; }
  }
  }
  </code></pre>
  
  <p>The Product class:</p>
  
  <pre><code>using System.ComponentModel.DataAnnotations;
  
  namespace WingtipToys.Models
  {
  public class Product
  {
      [ScaffoldColumn(false)]
      public int ProductID { get; set; }
  
      [Required, StringLength(100), Display(Name ="Name")]
      public string ProductName { get; set; }
  
      [Required, StringLength(10000), Display(Name ="Product Description"), DataType(DataType.MultilineText)]
      public string Description { get; set; }
  
      public string ImagePath { get; set; }
  
      [Display(Name = "Price")]
      public double? UnitPrice { get; set; }
  
      public int? CategoryID { get; set; }
  
      public virtual Category Category { get; set; }
  }
  }
  </code></pre>
  
  <p>What am I missing?</p>