NET-Web-API-w-Angular/Models/TodoContext.cs

13 lines
276 B
C#
Raw Normal View History

2024-02-09 00:29:56 +00:00
using Microsoft.EntityFrameworkCore;
namespace TodoApi.Models;
public class TodoContext : DbContext
{
public TodoContext(DbContextOptions<TodoContext> options)
: base(options)
{
}
public DbSet<TodoItem> TodoItems { get; set; } = null!;
}