mirror of
https://github.com/guilhermewerner/site-pi
synced 2025-06-16 13:54:20 +00:00
Initial commit
This commit is contained in:
30
SitePi/AppContext.cs
Normal file
30
SitePi/AppContext.cs
Normal file
@ -0,0 +1,30 @@
|
||||
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)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user