search refactoring
This commit is contained in:
@ -31,9 +31,9 @@ namespace Oqtane.Models
|
||||
|
||||
public string AdditionalContent { get; set; }
|
||||
|
||||
public IList<SearchContentProperty> Properties { get; set; }
|
||||
public IList<SearchContentProperty> SearchContentProperties { get; set; }
|
||||
|
||||
public IList<SearchContentWords> Words { get; set; }
|
||||
public IList<SearchContentWord> SearchContentWords { get; set; }
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
|
24
Oqtane.Shared/Models/SearchContentWord.cs
Normal file
24
Oqtane.Shared/Models/SearchContentWord.cs
Normal file
@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Oqtane.Models
|
||||
{
|
||||
public class SearchContentWord
|
||||
{
|
||||
[Key]
|
||||
public int SearchContentWordId { get; set; }
|
||||
|
||||
public int SearchContentId { get; set; }
|
||||
|
||||
public int SearchWordId { get; set; }
|
||||
|
||||
public int Count { get; set; }
|
||||
|
||||
public DateTime CreatedOn { get; set; }
|
||||
|
||||
public DateTime ModifiedOn { get; set; }
|
||||
|
||||
public SearchWord SearchWord { get; set; }
|
||||
}
|
||||
}
|
@ -1,19 +0,0 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Oqtane.Models
|
||||
{
|
||||
public class SearchContentWords
|
||||
{
|
||||
[Key]
|
||||
public int WordId { get; set; }
|
||||
|
||||
public int SearchContentId { get; set; }
|
||||
|
||||
public int WordSourceId { get; set; }
|
||||
|
||||
public int Count { get; set; }
|
||||
|
||||
public SearchContentWordSource WordSource { get; set; }
|
||||
}
|
||||
}
|
@ -1,12 +1,15 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Oqtane.Models
|
||||
{
|
||||
public class SearchContentWordSource
|
||||
public class SearchWord
|
||||
{
|
||||
[Key]
|
||||
public int WordSourceId { get; set; }
|
||||
public int SearchWordId { get; set; }
|
||||
|
||||
public string Word { get; set; }
|
||||
|
||||
public DateTime CreatedOn { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user