Skip to content

Instantly share code, notes, and snippets.

@oclockvn
Last active August 29, 2015 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oclockvn/d7536ed2fb542f8716c4 to your computer and use it in GitHub Desktop.
Save oclockvn/d7536ed2fb542f8716c4 to your computer and use it in GitHub Desktop.
public class ApplicationDbContext : IdentityDbContext<ApplicationUser>
{
public ApplicationDbContext()
: base("DefaultConnection", throwIfV1Schema: false)
{
}
public static ApplicationDbContext Create()
{
return new ApplicationDbContext();
}
public DbSet<Item> Items { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment