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/Solution.cs
Karolis2011 997154efa8 Progresss
2021-12-16 17:33:56 +02:00

26 lines
669 B
C#

using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;
namespace KTUSAPS.Data.Model
{
public class Solution
{
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; set; }
[MaxLength]
public string SolutionLt { get; set; }
[MaxLength]
public string SolutionEn { get; set; }
[JsonIgnore]
public virtual PublishedProblem Problem { get; set; }
public DateTime Created { get; set; }
public Solution()
{
Created = DateTime.Now;
}
}
}