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