Class WorkflowGlobalParameter
OptimaJet.Workflow.SQLite.WorkflowGlobalParameter
Database object for workflow global parameter operations.
Namespace: OptimaJet.Workflow.SQLite
public class WorkflowGlobalParameter : DbObject<GlobalParameterEntity>Inheritance
- Object
- DbObject<GlobalParameterEntity>
Constructors
public WorkflowGlobalParameter(string schemaName, int commandTimeout) #Initializes a new instance of WorkflowGlobalParameter.
Parameters
Name
Type
Description
schemaNameStringThe database schema name.
commandTimeoutInt32The command timeout in seconds.
Methods
public Task<GlobalParameterEntity[]> SelectByTypeAndNameAsync(SqliteConnection connection, string type, string name = null, Sorting sort = null, string tenantId = null) #Selects global parameters by type with optional name filter, sorting, and tenant scope.
Parameters
Name
Type
Description
connectionSqliteConnectionThe SQLite connection.
typeStringThe parameter type.
nameStringThe exact parameter name to filter by, or
null for all names.sortSortingThe sorting settings, or
null for default order.tenantIdStringThe tenant identifier, or
null for shared parameters.Returns
Type
Description
Task<GlobalParameterEntity[]>An array of matching global parameter entities.
public Task<GlobalParameterEntity[]> SearchByTypeAndNameWithPagingAsync(SqliteConnection connection, string type, string name = null, Paging paging = null, Sorting sort = null, string tenantId = null) #Searches global parameters by type with a partial name match, paging, and tenant scope.
Parameters
Name
Type
Description
connectionSqliteConnectionThe SQLite connection.
typeStringThe parameter type.
nameStringA partial name to search for, or
null for all names.pagingPagingThe paging settings, or
null to return all results.sortSortingThe sorting settings, or
null for default order.tenantIdStringThe tenant identifier, or
null for shared parameters.Returns
Type
Description
Task<GlobalParameterEntity[]>An array of matching global parameter entities.
public Task<int> GetCountByTypeAndNameAsync(SqliteConnection connection, string type, string name = null, string tenantId = null) #Returns the count of global parameters matching the specified type, optional name, and tenant scope.
Parameters
Name
Type
Description
connectionSqliteConnectionThe SQLite connection.
typeStringThe parameter type.
nameStringA partial name to filter by, or
null for all names.tenantIdStringThe tenant identifier, or
null for shared parameters.Returns
Type
Description
Task<Int32>The number of matching parameters.
public Task<int> DeleteByTypeAndNameAsync(SqliteConnection connection, string type, string name = null, string tenantId = null) #Deletes global parameters matching the specified type, optional name, and tenant scope.
Parameters
Name
Type
Description
connectionSqliteConnectionThe SQLite connection.
typeStringThe parameter type.
nameStringThe exact parameter name to filter by, or
null for all names.tenantIdStringThe tenant identifier, or
null for shared parameters.Returns
Type
Description
Task<Int32>The number of rows affected.