Class ParamHelper
Assembly: LemonEdge.Database.Connector.dll
Syntax
public abstract class ParamHelper
Constructors
ParamHelper()
Declaration
ParamHelper(IEnumerable<string>)
Declaration
protected ParamHelper(IEnumerable<string> parameterNames)
Parameters
ParamHelper(IEnumerable<(string Name, string DefaultValue)>)
Declaration
protected ParamHelper(IEnumerable<(string Name, string DefaultValue)> parameters)
Parameters
Methods
AddParam(string)
Declaration
public ParamHelper AddParam(string parameterName)
Parameters
Type |
Name |
Description |
string |
parameterName |
|
Returns
AddParam(string, string)
Declaration
public ParamHelper AddParam(string parameterName, string defaultValue)
Parameters
Type |
Name |
Description |
string |
parameterName |
|
string |
defaultValue |
|
Returns
GetParamValue(string)
Declaration
public string GetParamValue(string paramName)
Parameters
Type |
Name |
Description |
string |
paramName |
|
Returns
HasParam(string)
Declaration
public bool HasParam(string paramName)
Parameters
Type |
Name |
Description |
string |
paramName |
|
Returns
SetAllAsVariables()
Declaration
public ParamHelper SetAllAsVariables()
Returns
SetAllToNull()
Declaration
public ParamHelper SetAllToNull()
Returns
SetNullableValue<T>(string, T?)
Declaration
protected ParamHelper SetNullableValue<T>(string paramName, T? value) where T : struct
Parameters
Type |
Name |
Description |
string |
paramName |
|
T? |
value |
|
Returns
Type Parameters
SetValueToValueNamedVariable(string)
Declaration
protected ParamHelper SetValueToValueNamedVariable(string paramName)
Parameters
Type |
Name |
Description |
string |
paramName |
|
Returns
SetValueToVariable(string, string)
Declaration
protected ParamHelper SetValueToVariable(string paramName, string variableName)
Parameters
Returns
SetValue<T>(string, T)
Declaration
protected ParamHelper SetValue<T>(string paramName, T value)
Parameters
Type |
Name |
Description |
string |
paramName |
|
T |
value |
|
Returns
Type Parameters
ToFunctionCall(string)
Declaration
public string ToFunctionCall(string functionName)
Parameters
Type |
Name |
Description |
string |
functionName |
|
Returns
ToFunctionCall(string, IEnumerable<string>)
Declaration
public string ToFunctionCall(string functionName, IEnumerable<string> extraParameters)
Parameters
Returns
Extension Methods