Created
September 18, 2018 15:46
-
-
Save cpanuphan/ec317e605e3b0d18b2286b7435d14b9c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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