Class DataDictionaryServiceBase
- Namespace
- JJMasterData.Core.DataDictionary.Services
- Assembly
- JJMasterData.Core.dll
public abstract class DataDictionaryServiceBase
- Inheritance
-
DataDictionaryServiceBase
- Derived
-
- Inherited Members
-
Constructors
DataDictionaryServiceBase(IValidationDictionary, IDataDictionaryRepository, IStringLocalizer<MasterDataResources>)
protected DataDictionaryServiceBase(IValidationDictionary validationDictionary, IDataDictionaryRepository dataDictionaryRepository, IStringLocalizer<MasterDataResources> stringLocalizer)
Parameters
validationDictionary
IValidationDictionary
dataDictionaryRepository
IDataDictionaryRepository
stringLocalizer
IStringLocalizer<MasterDataResources>
Properties
DataDictionaryRepository
protected IDataDictionaryRepository DataDictionaryRepository { get; }
Property Value
- IDataDictionaryRepository
IsValid
public bool IsValid { get; }
Property Value
- bool
StringLocalizer
protected IStringLocalizer<MasterDataResources> StringLocalizer { get; }
Property Value
- IStringLocalizer<MasterDataResources>
Methods
AddError(string, string)
protected void AddError(string field, string message)
Parameters
field
string
message
string
public static IEnumerable<string> GetAutocompleteHintsList(FormElement formElement, bool includeAdditionalHints = true)
Parameters
formElement
FormElement
includeAdditionalHints
bool
Returns
- IEnumerable<string>
GetElementsDictionaryAsync()
public Task<Dictionary<string, string>> GetElementsDictionaryAsync()
Returns
- Task<Dictionary<string, string>>
public ValueTask<FormElement> GetFormElementAsync(string elementName)
Parameters
elementName
string
Returns
- ValueTask<FormElement>
GetNameListAsync()
public Task<List<string>> GetNameListAsync()
Returns
- Task<List<string>>
GetValidationSummary()
public JJValidationSummary GetValidationSummary()
Returns
- JJValidationSummary
RemoveError(string)
protected void RemoveError(string field)
Parameters
field
string
ValidateBooleanExpression(string)
protected static bool ValidateBooleanExpression(string value)
Parameters
value
string
Returns
- bool
ValidateExpression(string, params string[])
protected static bool ValidateExpression(string value, params string[] args)
Parameters
value
string
args
string[]
Returns
- bool
ValidateName(string)
public bool ValidateName(string name)
Parameters
name
string
Returns
- bool