22 lines
534 B
C#
22 lines
534 B
C#
|
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; }
|
|||
|
}
|
|||
|
}
|