Table of Contents

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>

GetFormElement(string)

public FormElement? GetFormElement(string elementName)

Parameters

elementName string

Returns

FormElement

GetFormElementAsync(string)

public ValueTask<FormElement?> GetFormElementAsync(string elementName)

Parameters

elementName string

Returns

ValueTask<FormElement>

GetFormElementInfoListAsync(DataDictionaryFilter, OrderByData, int, int)

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>>

GetFormElementList(bool?)

public List<FormElement> GetFormElementList(bool? apiSync = null)

Parameters

apiSync bool?

Returns

List<FormElement>

GetFormElementListAsync(bool?)

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>>

InsertOrReplace(FormElement)

public void InsertOrReplace(FormElement formElement)

Parameters

formElement FormElement

InsertOrReplaceAsync(FormElement)

public Task InsertOrReplaceAsync(FormElement formElement)

Parameters

formElement FormElement

Returns

Task