Table of Contents

Class FieldService

Namespace
JJMasterData.Core.DataDictionary.Services
Assembly
JJMasterData.Core.dll
public class FieldService : DataDictionaryServiceBase
Inheritance
FieldService
Inherited Members

Constructors

FieldService(IValidationDictionary, IDataDictionaryRepository, IEnumerable<IExpressionProvider>, IStringLocalizer<MasterDataResources>)

public FieldService(IValidationDictionary validationDictionary, IDataDictionaryRepository dataDictionaryRepository, IEnumerable<IExpressionProvider> expressionProviders, IStringLocalizer<MasterDataResources> stringLocalizer)

Parameters

validationDictionary IValidationDictionary
dataDictionaryRepository IDataDictionaryRepository
expressionProviders IEnumerable<IExpressionProvider>
stringLocalizer IStringLocalizer<MasterDataResources>

Methods

AddElementMapFilterAsync(FormElementField, DataElementMapFilter)

public Task<bool> AddElementMapFilterAsync(FormElementField field, DataElementMapFilter elementMapFilter)

Parameters

field FormElementField
elementMapFilter DataElementMapFilter

Returns

Task<bool>

CopyFieldAsync(FormElement, FormElementField)

public Task<bool> CopyFieldAsync(FormElement formElement, FormElementField field)

Parameters

formElement FormElement
field FormElementField

Returns

Task<bool>

DeleteField(string, string)

public Task<bool> DeleteField(string elementName, string fieldName)

Parameters

elementName string
fieldName string

Returns

Task<bool>

GetElementFieldListAsync(DataElementMap)

public Task<Dictionary<string, string>> GetElementFieldListAsync(DataElementMap elementMap)

Parameters

elementMap DataElementMap

Returns

Task<Dictionary<string, string>>

GetNextFieldNameAsync(string, string)

public Task<string> GetNextFieldNameAsync(string elementName, string fieldName)

Parameters

elementName string
fieldName string

Returns

Task<string>

SaveFieldAsync(string, FormElementField, string)

public Task<bool> SaveFieldAsync(string elementName, FormElementField field, string originalName)

Parameters

elementName string
field FormElementField
originalName string

Returns

Task<bool>

SortFieldsAsync(string, IEnumerable<string>)

public Task<bool> SortFieldsAsync(string elementName, IEnumerable<string> fieldsOrder)

Parameters

elementName string
fieldsOrder IEnumerable<string>

Returns

Task<bool>