Huge work
This commit is contained in:
@@ -22,7 +22,15 @@ namespace KTUSAPS.Data.Model
|
||||
[MaxLength]
|
||||
public string Description { get; set; }
|
||||
|
||||
public PublishedProblem Problem { get; set; }
|
||||
public PublishedFeedback Feedback { get; set; }
|
||||
public int IssueTypeId { get; set; }
|
||||
public virtual IssueType IssueType { get; set; }
|
||||
|
||||
public virtual PublishedProblem Problem { get; set; }
|
||||
public virtual PublishedFeedback Feedback { get; set; }
|
||||
|
||||
public Issue()
|
||||
{
|
||||
Created = DateTime.Now;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
18
KTUSAPS.Data/Model/IssueType.cs
Normal file
18
KTUSAPS.Data/Model/IssueType.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace KTUSAPS.Data.Model
|
||||
{
|
||||
public class IssueType
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string NameEn { get; set; }
|
||||
|
||||
public virtual ICollection<Issue> Issues { get; set; }
|
||||
|
||||
}
|
||||
}
|
@@ -1,18 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ClassDiagram MajorVersion="1" MinorVersion="1">
|
||||
<Class Name="KTUSAPS.Data.Model.Issue">
|
||||
<Position X="0.5" Y="0.75" Width="1.5" />
|
||||
<Position X="10.25" Y="1" Width="1.5" />
|
||||
<TypeIdentifier>
|
||||
<HashCode>AAACAAJAACAgAAAAAAACAAgIAAAAAAQAAAAAAAAAAAA=</HashCode>
|
||||
<HashCode>AIACAAJQACAgAAAAAAACAAgIAAAAAAQAAAAAAAAAAAA=</HashCode>
|
||||
<FileName>Model\Issue.cs</FileName>
|
||||
</TypeIdentifier>
|
||||
<ShowAsAssociation>
|
||||
<Property Name="Problem" />
|
||||
<Property Name="Feedback" />
|
||||
<Property Name="IssueType" />
|
||||
</ShowAsAssociation>
|
||||
</Class>
|
||||
<Class Name="KTUSAPS.Data.Model.PublishedFeedback">
|
||||
<Position X="2.75" Y="3.75" Width="1.5" />
|
||||
<Position X="6.5" Y="3" Width="1.5" />
|
||||
<TypeIdentifier>
|
||||
<HashCode>AAECAAAAAAAAAAAACAIAAAAAAAAAAAQAEAAAAAAAAAA=</HashCode>
|
||||
<FileName>Model\PublishedFeedback.cs</FileName>
|
||||
@@ -22,9 +23,9 @@
|
||||
</ShowAsAssociation>
|
||||
</Class>
|
||||
<Class Name="KTUSAPS.Data.Model.PublishedProblem">
|
||||
<Position X="2.75" Y="0.75" Width="1.5" />
|
||||
<Position X="4" Y="0.5" Width="1.5" />
|
||||
<TypeIdentifier>
|
||||
<HashCode>ACECABAAAAEAAAgAAAABAAAAEAAAQAQAEAAAAAAAAAA=</HashCode>
|
||||
<HashCode>ACECABAAAAEAAAgAAAABAAAAAAAAAAQAEAAAAAAAAAA=</HashCode>
|
||||
<FileName>Model\PublishedProblem.cs</FileName>
|
||||
</TypeIdentifier>
|
||||
<ShowAsAssociation>
|
||||
@@ -36,7 +37,7 @@
|
||||
</ShowAsCollectionAssociation>
|
||||
</Class>
|
||||
<Class Name="KTUSAPS.Data.Model.Solution">
|
||||
<Position X="6" Y="0.5" Width="1.5" />
|
||||
<Position X="0.75" Y="0.75" Width="1.5" />
|
||||
<TypeIdentifier>
|
||||
<HashCode>AAACAAIABAAAAQAAAAAAAAAAAAAAAAQAAAAAAAAAAAA=</HashCode>
|
||||
<FileName>Model\Solution.cs</FileName>
|
||||
@@ -46,7 +47,7 @@
|
||||
</ShowAsAssociation>
|
||||
</Class>
|
||||
<Class Name="KTUSAPS.Data.Model.Vote">
|
||||
<Position X="6" Y="2.5" Width="1.5" />
|
||||
<Position X="3.5" Y="4.5" Width="1.5" />
|
||||
<TypeIdentifier>
|
||||
<HashCode>AAAAAAIAAAAAEAAAAAAAAAgAAAAAAAAAAAAAAAAAAAA=</HashCode>
|
||||
<FileName>Model\Vote.cs</FileName>
|
||||
@@ -55,5 +56,15 @@
|
||||
<Property Name="Problem" />
|
||||
</ShowAsAssociation>
|
||||
</Class>
|
||||
<Class Name="KTUSAPS.Data.Model.IssueType">
|
||||
<Position X="12.25" Y="5.25" Width="1.5" />
|
||||
<TypeIdentifier>
|
||||
<HashCode>AAECAAAAAAAAAAAAACAAAAQAAAAAAAAAAAAAAAAAAAA=</HashCode>
|
||||
<FileName>Model\IssueType.cs</FileName>
|
||||
</TypeIdentifier>
|
||||
<ShowAsCollectionAssociation>
|
||||
<Property Name="Issues" />
|
||||
</ShowAsCollectionAssociation>
|
||||
</Class>
|
||||
<Font Name="Segoe UI" Size="9" />
|
||||
</ClassDiagram>
|
@@ -22,6 +22,11 @@ namespace KTUSAPS.Data.Model
|
||||
public DateTime Created { get; set; }
|
||||
|
||||
public int? IssueId { get; set; }
|
||||
public Issue Issue { get; set; }
|
||||
public virtual Issue Issue { get; set; }
|
||||
|
||||
public PublishedFeedback()
|
||||
{
|
||||
Created = DateTime.Now;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -18,20 +18,19 @@ namespace KTUSAPS.Data.Model
|
||||
[Required]
|
||||
[MaxLength]
|
||||
public string ProblemEn { get; set; }
|
||||
[MaxLength]
|
||||
public string ResponseLt { get; set; }
|
||||
[MaxLength]
|
||||
public string ResponseEn { get; set; }
|
||||
|
||||
public DateTime Created { get; set; }
|
||||
|
||||
public int? IssueId { get; set; }
|
||||
public Issue Issue { get; set; }
|
||||
public virtual Issue Issue { get; set; }
|
||||
|
||||
public int? SolutionId { get; set; }
|
||||
public Solution Solution { get; set; }
|
||||
public virtual Solution Solution { get; set; }
|
||||
public ICollection<Vote> Votes { get; set; }
|
||||
|
||||
|
||||
public PublishedProblem()
|
||||
{
|
||||
Created = DateTime.Now;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -14,7 +14,12 @@ namespace KTUSAPS.Data.Model
|
||||
public string SolutionEn { get; set; }
|
||||
|
||||
|
||||
public PublishedProblem Problem { get; set; }
|
||||
public DateTime Created { get; set; }
|
||||
public virtual PublishedProblem Problem { get; set; }
|
||||
public DateTime Created { get; set; }
|
||||
|
||||
public Solution()
|
||||
{
|
||||
Created = DateTime.Now;
|
||||
}
|
||||
}
|
||||
}
|
@@ -12,7 +12,7 @@ namespace KTUSAPS.Data.Model
|
||||
[MaxLength(64)]
|
||||
public string UserId { get; set; }
|
||||
public int ProblemId { get; set; }
|
||||
public PublishedProblem Problem { get; set; }
|
||||
public virtual PublishedProblem Problem { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user