Initial commit

This commit is contained in:
GuiNerd
2019-11-27 18:42:43 -03:00
commit 5fd7176543
1714 changed files with 171249 additions and 0 deletions

30
SitePi/AppContext.cs Normal file
View 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)
{
}
}
}