Initial checkin

This commit is contained in:
2023-11-22 15:19:43 -05:00
parent 3752c97a8c
commit 80b4ce1ad8
16 changed files with 425 additions and 0 deletions

13
Models/TodoContext.cs Normal file
View 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!;
}

8
Models/TodoItem.cs Normal file
View File

@@ -0,0 +1,8 @@
namespace TodoApi.Models;
public class TodoItem
{
public long Id { get; set; }
public string? Name { get; set; }
public bool IsComplete { get; set; }
}