Skip to content

Instantly share code, notes, and snippets.

@cpanuphan
Created September 18, 2018 15:46
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 cpanuphan/ec317e605e3b0d18b2286b7435d14b9c to your computer and use it in GitHub Desktop.
Save cpanuphan/ec317e605e3b0d18b2286b7435d14b9c to your computer and use it in GitHub Desktop.
using Microsoft.EntityFrameworkCore;
namespace TodoApi.Models
{
public class TodoContext : DbContext
{
public TodoContext(DbContextOptions<TodoContext> options)
: base(options)
{
}
public DbSet<TodoItem> TodoItems { get; set; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment