Table of Contents

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

options IOptionsSnapshot<FileSystemDataDictionaryOptions>

Properties

FolderPath

public string FolderPath { get; }

Property Value

string

Methods

CreateStructureIfNotExists()

public void CreateStructureIfNotExists()

CreateStructureIfNotExistsAsync()

public Task CreateStructureIfNotExistsAsync()

Returns

Task

Delete(string)

public void Delete(string elementName)

Parameters

elementName string

DeleteAsync(string)

public Task DeleteAsync(string elementName)

Parameters

elementName string

Returns

Task

Exists(string)

public bool Exists(string elementName)

Parameters

elementName string

Returns

bool

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

GetMetadata(string)

public FormElement GetMetadata(string elementName)

Parameters

elementName string

Returns

FormElement

GetMetadataInfoList(DataDictionaryFilter, OrderByData, int, int, ref int)

public IEnumerable<FormElementInfo> GetMetadataInfoList(DataDictionaryFilter filter, OrderByData orderBy, int recordsPerPage, int currentPage, ref int totalRecords)

Parameters

filter DataDictionaryFilter
orderBy OrderByData
recordsPerPage int
currentPage int
totalRecords int

Returns

IEnumerable<FormElementInfo>

GetMetadataList(bool?)

public List<FormElement> GetMetadataList(bool? sync = null)

Parameters

sync bool?

Returns

List<FormElement>

GetNameList()

public List<string> GetNameList()

Returns

List<string>

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

Parameters

metadata FormElement

Returns

Task