Class DataHelper
- Namespace
- JJMasterData.Core.DataManager
- Assembly
- JJMasterData.Core.dll
public static class DataHelper
- Inheritance
-
DataHelper
- Inherited Members
Methods
ContainsPkValues(Element, Dictionary<string, object?>)
public static bool ContainsPkValues(Element element, Dictionary<string, object?> values)
Parameters
element
Elementvalues
Dictionary<string, object>
Returns
CopyIntoDictionary(Dictionary<string, object?>, Dictionary<string, object?>?, bool)
public static void CopyIntoDictionary(Dictionary<string, object?> valuesToBeReceived, Dictionary<string, object?>? valuesToBeCopied, bool replaceIfKeyExists = false)
Parameters
valuesToBeReceived
Dictionary<string, object>valuesToBeCopied
Dictionary<string, object>replaceIfKeyExists
bool
GetCurrentUserId(IHttpContext, Dictionary<string, object?>?)
public static string? GetCurrentUserId(IHttpContext context, Dictionary<string, object?>? userValues)
Parameters
context
IHttpContextuserValues
Dictionary<string, object>
Returns
GetElementValues(Element, Dictionary<string, object?>)
public static Dictionary<string, object?> GetElementValues(Element element, Dictionary<string, object?> values)
Parameters
element
Elementvalues
Dictionary<string, object>
Returns
GetPkValues(Element, Dictionary<string, object?>)
public static Dictionary<string, object> GetPkValues(Element element, Dictionary<string, object?> values)
Parameters
element
Elementvalues
Dictionary<string, object>
Returns
GetPkValues(Element, string, char)
public static Dictionary<string, object> GetPkValues(Element element, string parsedValues, char separator)
Parameters
Returns
GetRelationValues(Element, Dictionary<string, object?>, bool)
public static Dictionary<string, object> GetRelationValues(Element element, Dictionary<string, object?> values, bool usePkColumnName = false)
Parameters
element
Elementvalues
Dictionary<string, object>usePkColumnName
bool
Returns
ParseOriginalName(FormElement, Dictionary<string, object?>?)
Preserves the original name of the field as registered in the dictionary and validates if the field exists
public static Dictionary<string, object?>? ParseOriginalName(FormElement formElement, Dictionary<string, object?>? paramValues)
Parameters
formElement
FormElementparamValues
Dictionary<string, object>
Returns
ParsePkValues(FormElement, Dictionary<string, object?>, char)
Concat primary keys with separator characters
public static string ParsePkValues(FormElement formElement, Dictionary<string, object?> formValues, char separator)
Parameters
formElement
FormElementformValues
Dictionary<string, object>separator
char
Returns
RemoveNullValues(Dictionary<string, object?>?)
public static void RemoveNullValues(Dictionary<string, object?>? values)
Parameters
values
Dictionary<string, object>