public interface IDictionaryItemService
Methods View Source CountChildrenAsync(Guid) Declaration
Task<int> CountChildrenAsync(Guid parentId)
Parameters Type Name Description Guid parentId Returns Type Description Task<System.Int32> View Source CountRootAsync() Declaration
Task<int> CountRootAsync()
Returns Type Description Task<System.Int32> View Source CreateAsync(IDictionaryItem, Guid)
Creates and saves a new dictionary item and assigns translations to all applicable languages if specified
DeclarationTask<Attempt<IDictionaryItem, DictionaryItemOperationStatus>> CreateAsync(IDictionaryItem dictionaryItem, Guid userKey)
Parameters Returns View Source DeleteAsync(Guid, Guid)
Deletes a IDictionaryItem object and its related translations as well as its children.
DeclarationTask<Attempt<IDictionaryItem, DictionaryItemOperationStatus>> DeleteAsync(Guid id, Guid userKey)
Parameters Type Name Description Guid id
The ID of the IDictionaryItem to delete
Guid userKeyKey of the user deleting the dictionary item
Returns View Source ExistsAsync(String)Checks if a IDictionaryItem with given key exists
DeclarationTask<bool> ExistsAsync(string key)
Parameters Returns Type Description Task<System.Boolean>
True if a IDictionaryItem exists, otherwise false
View Source GetAsync(Guid)Gets a IDictionaryItem by its id
DeclarationTask<IDictionaryItem> GetAsync(Guid id)
Parameters Returns View Source GetAsync(String)
Gets a IDictionaryItem by by its key
DeclarationTask<IDictionaryItem> GetAsync(string key)
Parameters Returns View Source GetAtRootAsync()
Gets the root/top IDictionaryItem objects
DeclarationTask<IEnumerable<IDictionaryItem>> GetAtRootAsync()
Returns View Source GetChildrenAsync(Guid)
Gets a list of children for a IDictionaryItem
DeclarationTask<IEnumerable<IDictionaryItem>> GetChildrenAsync(Guid parentId)
Parameters Type Name Description Guid parentId
Id of the parent
Returns View Source GetDescendantsAsync(Nullable<Guid>, String)Gets a list of descendants for a IDictionaryItem
DeclarationTask<IEnumerable<IDictionaryItem>> GetDescendantsAsync(Guid? parentId, string filter = null)
Parameters Type Name Description System.Nullable<Guid> parentId
Id of the parent, null will return all dictionary items
System.String filterAn optional filter, which will limit the results to only those dictionary items whose key starts with the filter value.
Returns View Source GetManyAsync(Guid[])Gets a collection of IDictionaryItem by their ids
DeclarationTask<IEnumerable<IDictionaryItem>> GetManyAsync(params Guid[] ids)
Parameters Returns View Source GetManyAsync(String[])
Gets a collection of IDictionaryItem by their keys
DeclarationTask<IEnumerable<IDictionaryItem>> GetManyAsync(params string[] keys)
Parameters Returns View Source GetPagedAsync(Nullable<Guid>, Int32, Int32)
Gets the dictionary items in a paged manner. Currently implements the paging in memory on the itenkey property because the underlying repository does not support paging yet
DeclarationTask<PagedModel<IDictionaryItem>> GetPagedAsync(Guid? parentId, int skip, int take)
Parameters Type Name Description System.Nullable<Guid> parentId System.Int32 skip System.Int32 take Returns View Source MoveAsync(IDictionaryItem, Nullable<Guid>, Guid)
Moves a IDictionaryItem object
DeclarationTask<Attempt<IDictionaryItem, DictionaryItemOperationStatus>> MoveAsync(IDictionaryItem dictionaryItem, Guid? parentId, Guid userKey)
Parameters Type Name Description IDictionaryItem dictionaryItem
IDictionaryItem to move
System.Nullable<Guid> parentIdId of the new IDictionaryItem parent, null if the item should be moved to the root
Guid userKeyKey of the user moving the dictionary item
Returns View Source UpdateAsync(IDictionaryItem, Guid)Updates an existing IDictionaryItem object
DeclarationTask<Attempt<IDictionaryItem, DictionaryItemOperationStatus>> UpdateAsync(IDictionaryItem dictionaryItem, Guid userKey)
Parameters Returns
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4