Table of Contents

Class MongoDBDataDictionaryRepository

Namespace
JJMasterData.MongoDB.Repository
Assembly
JJMasterData.MongoDB.dll
public class MongoDBDataDictionaryRepository : IDataDictionaryRepository
Inheritance
MongoDBDataDictionaryRepository
Implements
Inherited Members

Constructors

MongoDBDataDictionaryRepository(IOptions<MasterDataMongoDBOptions>)

public MongoDBDataDictionaryRepository(IOptions<MasterDataMongoDBOptions> options)

Parameters

options IOptions<MasterDataMongoDBOptions>

Methods

CreateStructureIfNotExistsAsync()

public Task CreateStructureIfNotExistsAsync()

Returns

Task

DeleteAsync(string)

public Task DeleteAsync(string dictionaryName)

Parameters

dictionaryName string

Returns

Task

ExistsAsync(string)

public Task<bool> ExistsAsync(string dictionaryName)

Parameters

dictionaryName 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 filters, OrderByData orderBy, int recordsPerPage, int currentPage)

Parameters

filters 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