mirror of
https://github.com/guilhermewerner/site-pi
synced 2025-06-16 13:54:20 +00:00
26 lines
564 B
C#
26 lines
564 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.Models
|
|
{
|
|
public class Question
|
|
{
|
|
[Key]
|
|
public int Id { get; set; }
|
|
|
|
[Required]
|
|
public string Text { get; set; }
|
|
|
|
public int QuizId { get; set; }
|
|
public Quiz Quiz { get; set; }
|
|
|
|
public List<Choice> Choices { get; set; }
|
|
}
|
|
}
|