todo-app-backend/TodoApp/API/Data/TodoAppContext.cs
JakubWalkowiak bfb86df000 initial app
2022-02-08 22:12:18 +01:00

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; }
}
}