mirror of
https://github.com/guilhermewerner/site-pi
synced 2025-06-15 13:24:19 +00:00
30 lines
802 B
C#
30 lines
802 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using SitePi.Models;
|
|
|
|
namespace SitePi
|
|
{
|
|
public class AppContext : DbContext
|
|
{
|
|
public DbSet<User> Users { get; set; }
|
|
public DbSet<Quiz> Quizzes { get; set; }
|
|
public DbSet<Question> Questions { get; set; }
|
|
public DbSet<Choice> Choices { get; set; }
|
|
public DbSet<Bot> Bots { get; set; }
|
|
public DbSet<Profile> Profiles { get; set; }
|
|
|
|
public AppContext(DbContextOptions o) : base(o)
|
|
{
|
|
|
|
}
|
|
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
{
|
|
}
|
|
}
|
|
} |