Progresss
This commit is contained in:
@@ -4,6 +4,7 @@ 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
|
||||
@@ -23,9 +24,11 @@ namespace KTUSAPS.Data.Model
|
||||
public string Description { get; set; }
|
||||
|
||||
public int IssueTypeId { get; set; }
|
||||
[JsonIgnore]
|
||||
public virtual IssueType IssueType { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
public virtual PublishedProblem Problem { get; set; }
|
||||
[JsonIgnore]
|
||||
public virtual PublishedFeedback Feedback { get; set; }
|
||||
|
||||
public Issue()
|
||||
|
@@ -2,6 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Text.Json.Serialization;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace KTUSAPS.Data.Model
|
||||
@@ -12,6 +13,7 @@ namespace KTUSAPS.Data.Model
|
||||
public string Name { get; set; }
|
||||
public string NameEn { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
public virtual HashSet<Issue> Issues { get; set; }
|
||||
|
||||
}
|
||||
|
@@ -7,9 +7,9 @@
|
||||
<FileName>Model\Issue.cs</FileName>
|
||||
</TypeIdentifier>
|
||||
<ShowAsAssociation>
|
||||
<Property Name="IssueType" />
|
||||
<Property Name="Problem" />
|
||||
<Property Name="Feedback" />
|
||||
<Property Name="IssueType" />
|
||||
</ShowAsAssociation>
|
||||
</Class>
|
||||
<Class Name="KTUSAPS.Data.Model.PublishedFeedback">
|
||||
@@ -57,7 +57,7 @@
|
||||
</ShowAsAssociation>
|
||||
</Class>
|
||||
<Class Name="KTUSAPS.Data.Model.IssueType">
|
||||
<Position X="12.25" Y="5.25" Width="1.5" />
|
||||
<Position X="11" Y="5.5" Width="1.5" />
|
||||
<TypeIdentifier>
|
||||
<HashCode>AAECAAAAAAAAAAAAACAAAAQAAAAAAAAAAAAAAAAAAAA=</HashCode>
|
||||
<FileName>Model\IssueType.cs</FileName>
|
||||
@@ -66,5 +66,12 @@
|
||||
<Property Name="Issues" />
|
||||
</ShowAsCollectionAssociation>
|
||||
</Class>
|
||||
<Class Name="KTUSAPS.Data.Model.Admin">
|
||||
<Position X="0.75" Y="4.5" Width="1.5" />
|
||||
<TypeIdentifier>
|
||||
<HashCode>AAAAAAAEAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAA=</HashCode>
|
||||
<FileName>Model\Admin.cs</FileName>
|
||||
</TypeIdentifier>
|
||||
</Class>
|
||||
<Font Name="Segoe UI" Size="9" />
|
||||
</ClassDiagram>
|
@@ -4,6 +4,7 @@ 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
|
||||
@@ -22,6 +23,7 @@ namespace KTUSAPS.Data.Model
|
||||
public DateTime Created { get; set; }
|
||||
|
||||
public int? IssueId { get; set; }
|
||||
[JsonIgnore]
|
||||
public virtual Issue Issue { get; set; }
|
||||
|
||||
public PublishedFeedback()
|
||||
|
@@ -4,6 +4,7 @@ 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
|
||||
@@ -22,10 +23,13 @@ namespace KTUSAPS.Data.Model
|
||||
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()
|
||||
|
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace KTUSAPS.Data.Model
|
||||
{
|
||||
@@ -13,7 +14,7 @@ namespace KTUSAPS.Data.Model
|
||||
[MaxLength]
|
||||
public string SolutionEn { get; set; }
|
||||
|
||||
|
||||
[JsonIgnore]
|
||||
public virtual PublishedProblem Problem { get; set; }
|
||||
public DateTime Created { get; set; }
|
||||
|
||||
|
@@ -3,6 +3,7 @@ using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Text.Json.Serialization;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace KTUSAPS.Data.Model
|
||||
@@ -12,6 +13,7 @@ namespace KTUSAPS.Data.Model
|
||||
[MaxLength(64)]
|
||||
public string UserId { get; set; }
|
||||
public int ProblemId { get; set; }
|
||||
[JsonIgnore]
|
||||
public virtual PublishedProblem Problem { get; set; }
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user