Class SqlDataDictionaryRepository
- Namespace
- JJMasterData.Core.DataDictionary.Repository
- Assembly
- JJMasterData.Core.dll
public class SqlDataDictionaryRepository : IDataDictionaryRepository
- Inheritance
-
SqlDataDictionaryRepository
- Implements
-
- Inherited Members
-
Constructors
SqlDataDictionaryRepository(IEntityRepository, IMemoryCache, IOptionsSnapshot<MasterDataCoreOptions>)
public SqlDataDictionaryRepository(IEntityRepository entityRepository, IMemoryCache memoryCache, IOptionsSnapshot<MasterDataCoreOptions> options)
Parameters
entityRepository
IEntityRepository
memoryCache
IMemoryCache
options
IOptionsSnapshot<MasterDataCoreOptions>
Methods
CreateStructureIfNotExistsAsync()
public Task CreateStructureIfNotExistsAsync()
Returns
- Task
DeleteAsync(string)
public Task DeleteAsync(string elementName)
Parameters
elementName
string
Returns
- Task
ExistsAsync(string)
public Task<bool> ExistsAsync(string elementName)
Parameters
elementName
string
Returns
- Task<bool>
public FormElement? GetFormElement(string elementName)
Parameters
elementName
string
Returns
- FormElement
public ValueTask<FormElement?> GetFormElementAsync(string elementName)
Parameters
elementName
string
Returns
- ValueTask<FormElement>
public Task<ListResult<FormElementInfo>> GetFormElementInfoListAsync(DataDictionaryFilter filter, OrderByData orderBy, int recordsPerPage, int currentPage)
Parameters
filter
DataDictionaryFilter
orderBy
OrderByData
recordsPerPage
int
currentPage
int
Returns
- Task<ListResult<FormElementInfo>>
public List<FormElement> GetFormElementList(bool? apiSync = null)
Parameters
apiSync
bool?
Returns
- List<FormElement>
public Task<List<FormElement>> GetFormElementListAsync(bool? apiSync = null)
Parameters
apiSync
bool?
Returns
- Task<List<FormElement>>
GetNameListAsync()
public Task<List<string>> GetNameListAsync()
Returns
- Task<List<string>>
public void InsertOrReplace(FormElement formElement)
Parameters
formElement
FormElement
public Task InsertOrReplaceAsync(FormElement formElement)
Parameters
formElement
FormElement
Returns
- Task