todo-app-backend/TodoApp/API/Data/TodoAppContext.cs

22 lines
534 B
C#
Raw Normal View History

2022-02-08 22:12:18 +01:00
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using TodoApp.API.Models;
namespace TodoApp.API.Data
{
public class TodoAppContext : IdentityDbContext<User>
{
public TodoAppContext(DbContextOptions<TodoAppContext> options) : base(options)
{
}
public DbSet<TodoItem> TodoItems { get; set; }
public DbSet<User> Users { get; set; }
}
}