This repository has been archived on 2025-08-13. You can view files and clone it, but cannot push or open issues or pull requests.
Files
KTUSA-PS/KTUSAPS.Data/Model/PublishedProblem.cs
Karolis2011 997154efa8 Progresss
2021-12-16 17:33:56 +02:00

41 lines
1.0 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
namespace KTUSAPS.Data.Model
{
public class PublishedProblem
{
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; set; }
[Required]
[MaxLength]
public string ProblemLt { get; set; }
[Required]
[MaxLength]
public string ProblemEn { get; set; }
public DateTime Created { get; set; }
public int? IssueId { get; set; }
[JsonIgnore]
public virtual Issue Issue { get; set; }
public int? SolutionId { get; set; }
[JsonIgnore]
public virtual Solution Solution { get; set; }
[JsonIgnore]
public virtual HashSet<Vote> Votes { get; set; }
public PublishedProblem()
{
Created = DateTime.Now;
}
}
}