Class SearchContentRepository
- Namespace
- Oqtane.Repository
- Assembly
- Oqtane.Server.dll
public class SearchContentRepository : ISearchContentRepository
- Inheritance
-
SearchContentRepository
- Implements
-
Constructors
SearchContentRepository(IDbContextFactory<TenantDBContext>)
public SearchContentRepository(IDbContextFactory<TenantDBContext> dbContextFactory)
Parameters
dbContextFactory
IDbContextFactory<TenantDBContext>
Methods
AddSearchContent(SearchContent)
public SearchContent AddSearchContent(SearchContent searchContent)
Parameters
searchContent
SearchContent
Returns
- SearchContent
AddSearchContentWord(SearchContentWord)
public SearchContentWord AddSearchContentWord(SearchContentWord searchContentWord)
Parameters
searchContentWord
SearchContentWord
Returns
- SearchContentWord
AddSearchWord(SearchWord)
public SearchWord AddSearchWord(SearchWord searchWord)
Parameters
searchWord
SearchWord
Returns
- SearchWord
DeleteAllSearchContent()
public void DeleteAllSearchContent()
DeleteSearchContent(int)
public void DeleteSearchContent(int searchContentId)
Parameters
searchContentId
int
DeleteSearchContent(string)
public void DeleteSearchContent(string uniqueKey)
Parameters
uniqueKey
string
DeleteSearchContent(string, string)
public void DeleteSearchContent(string entityName, string entryId)
Parameters
entityName
string
entryId
string
GetSearchContentWords(int)
public IEnumerable<SearchContentWord> GetSearchContentWords(int searchContentId)
Parameters
searchContentId
int
Returns
- IEnumerable<SearchContentWord>
GetSearchContentsAsync(SearchQuery)
public Task<IEnumerable<SearchContent>> GetSearchContentsAsync(SearchQuery searchQuery)
Parameters
searchQuery
SearchQuery
Returns
- Task<IEnumerable<SearchContent>>
GetSearchWord(string)
public SearchWord GetSearchWord(string word)
Parameters
word
string
Returns
- SearchWord
UpdateSearchContentWord(SearchContentWord)
public SearchContentWord UpdateSearchContentWord(SearchContentWord searchContentWord)
Parameters
searchContentWord
SearchContentWord
Returns
- SearchContentWord