添加项目文件。
This commit is contained in:
26
TightWiki.Models/DataModels/RelatedPage.cs
Normal file
26
TightWiki.Models/DataModels/RelatedPage.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
namespace TightWiki.Models.DataModels
|
||||
{
|
||||
public partial class RelatedPage
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string Navigation { get; set; } = string.Empty;
|
||||
public string Description { get; set; } = string.Empty;
|
||||
public int Matches { get; set; }
|
||||
public int PaginationPageSize { get; set; }
|
||||
public int PaginationPageCount { get; set; }
|
||||
|
||||
public string Title
|
||||
{
|
||||
get
|
||||
{
|
||||
if (Name.Contains("::"))
|
||||
{
|
||||
return Name.Substring(Name.IndexOf("::") + 2).Trim();
|
||||
}
|
||||
|
||||
return Name;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user