Created
May 1, 2019 14:20
-
-
Save SafaElmali/4fa426b5366cee1e10c6ba1796c19198 to your computer and use it in GitHub Desktop.
Database Context
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 TodoProject.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