mirror of
https://github.com/guilhermewerner/site-pi
synced 2025-06-16 13:54:20 +00:00
Initial commit
This commit is contained in:
26
SitePi/Models/Choice.cs
Normal file
26
SitePi/Models/Choice.cs
Normal file
@ -0,0 +1,26 @@
|
||||
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 Choice
|
||||
{
|
||||
[Key]
|
||||
public int Id { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Text { get; set; }
|
||||
|
||||
public int QuestionId { get; set; }
|
||||
public Question Question { get; set; }
|
||||
|
||||
public int ProfileId { get; set; }
|
||||
public Profile Profile { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user