Initial checkin
This commit is contained in:
13
Models/TodoContext.cs
Normal file
13
Models/TodoContext.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace TodoApi.Models;
|
||||
|
||||
public class TodoContext : DbContext
|
||||
{
|
||||
public TodoContext(DbContextOptions<TodoContext> options)
|
||||
: base(options)
|
||||
{
|
||||
}
|
||||
|
||||
public DbSet<TodoItem> TodoItems { get; set; } = null!;
|
||||
}
|
||||
Reference in New Issue
Block a user