Class FileSystemDataDictionaryRepository
- Namespace
- JJMasterData.Core.DataDictionary.Repository
- Assembly
- JJMasterData.Core.dll
The Data Dictionaries (metadata) are stored in files in a custom folder
public class FileSystemDataDictionaryRepository : IDataDictionaryRepository
- Inheritance
-
FileSystemDataDictionaryRepository
- Implements
- Inherited Members
Constructors
FileSystemDataDictionaryRepository(IOptionsSnapshot<FileSystemDataDictionaryOptions>)
The Data Dictionaries (metadata) are stored in files in a custom folder
public FileSystemDataDictionaryRepository(IOptionsSnapshot<FileSystemDataDictionaryOptions> options)
Parameters
Properties
FolderPath
public string FolderPath { get; }
Property Value
Methods
CreateStructureIfNotExists()
public void CreateStructureIfNotExists()
CreateStructureIfNotExistsAsync()
public Task CreateStructureIfNotExistsAsync()
Returns
Delete(string)
public void Delete(string elementName)
Parameters
elementName
string
DeleteAsync(string)
public Task DeleteAsync(string elementName)
Parameters
elementName
string
Returns
Exists(string)
public bool Exists(string elementName)
Parameters
elementName
string
Returns
ExistsAsync(string)
public Task<bool> ExistsAsync(string elementName)
Parameters
elementName
string
Returns
GetFormElement(string)
public FormElement GetFormElement(string elementName)
Parameters
elementName
string
Returns
GetFormElementAsync(string)
public ValueTask<FormElement> GetFormElementAsync(string elementName)
Parameters
elementName
string
Returns
GetFormElementInfoListAsync(DataDictionaryFilter, OrderByData, int, int)
public Task<ListResult<FormElementInfo>> GetFormElementInfoListAsync(DataDictionaryFilter filters, OrderByData orderBy, int recordsPerPage, int currentPage)
Parameters
filters
DataDictionaryFilterorderBy
OrderByDatarecordsPerPage
intcurrentPage
int
Returns
GetFormElementList(bool?)
public List<FormElement> GetFormElementList(bool? apiSync = null)
Parameters
apiSync
bool?
Returns
GetFormElementListAsync(bool?)
public Task<List<FormElement>> GetFormElementListAsync(bool? apiSync = null)
Parameters
apiSync
bool?
Returns
GetMetadata(string)
public FormElement GetMetadata(string elementName)
Parameters
elementName
string
Returns
GetMetadataInfoList(DataDictionaryFilter, OrderByData, int, int, ref int)
public IEnumerable<FormElementInfo> GetMetadataInfoList(DataDictionaryFilter filter, OrderByData orderBy, int recordsPerPage, int currentPage, ref int totalRecords)
Parameters
filter
DataDictionaryFilterorderBy
OrderByDatarecordsPerPage
intcurrentPage
inttotalRecords
int
Returns
GetMetadataList(bool?)
public List<FormElement> GetMetadataList(bool? sync = null)
Parameters
sync
bool?
Returns
GetNameList()
public List<string> GetNameList()
Returns
GetNameListAsync()
public Task<List<string>> GetNameListAsync()
Returns
InsertOrReplace(FormElement)
public void InsertOrReplace(FormElement formElement)
Parameters
formElement
FormElement
InsertOrReplaceAsync(FormElement)
public Task InsertOrReplaceAsync(FormElement metadata)
Parameters
metadata
FormElement