title: Empty dbSet in ApplicationDbContext
body: <p>In mvc5 application i'm create class in folder "Models":</p>
  
  <pre><code>public class Code
  {
      [Key]
      public Guid Id { get; set; }
      public string UserId { get; set; }
  }
  </code></pre>
  
  <p>And make migration.</p>
  
  <p>Also i got class(context, autogenerated): </p>
  
  <pre><code>public class ApplicationDbContext : IdentityDbContext&lt;ApplicationUser&gt;
  {
      public ApplicationDbContext()
          : base("DefaultConnection", throwIfV1Schema: false)
      {
      }
  
      public static ApplicationDbContext Create()
      {
          return new ApplicationDbContext();
      }
      public DbSet&lt;Code&gt; Codes { get; set; }
  }
  </code></pre>
  
  <p>In one of my controllers i wrote method:</p>
  
  <pre><code>using (var db = new ApplicationDbContext())
  {
      var manager =
          new UserManager&lt;ApplicationUser&gt;(new UserStore&lt;ApplicationUser&gt;(db));
      var user = manager.FindById(User.Identity.GetUserId());
      Code codeD = new Code();
      codeD.Id = Guid.NewGuid();
      codeD.UserId = user.Id;
      db.Codes.Add(codeD);
      db.SaveChanges();
  }
  </code></pre>
  
  <p>But every time when i do it, db.Codes got 0 items.
  <img src="https://i.stack.imgur.com/t2vAU.jpg" alt="enter image description here"></p>
  
  <p>But in my Data Base changes saved and i got this items:
  <img src="https://i.stack.imgur.com/4eELT.jpg" alt="enter image description here"></p>
  
  <p>Did anyone know reason of such phenomenon? I can't reach items from Data base, but im free to save new items. Did someone know, how gets all "Codes" from my Database?</p>
  
  <p>I used generated mvc5 project, so ApplicationUserDbContext generated automaticaly.</p>
  
  <p>Kind regards.</p>