Class UpdateQueryRunnerHandler
Can be used in a IQueryRunnerStep as a handler for updating the item
Implements
Inherited Members
Namespace: LemonEdge.API.Core.Reporting.Queries
Assembly: LemonEdge.API.dll
Syntax
public class UpdateQueryRunnerHandler : IQueryRunnerHandler
Constructors
UpdateQueryRunnerHandler()
Declaration
public UpdateQueryRunnerHandler()
Fields
PARAM_ID_NAME
The parameter name for the id of the entity instance to update
Declaration
public const string PARAM_ID_NAME = "@ID"
Field Value
Type | Description |
---|---|
string |
UNIQUEID
The unique id for the update handler
Declaration
public const string UNIQUEID = "5808FFD5-50C2-4314-8025-13D749237791"
Field Value
Type | Description |
---|---|
string |
Properties
CustomHandlerInstanceItems
All entity types
Declaration
public IEnumerable<KeyValuePair<Guid, string>> CustomHandlerInstanceItems { get; }
Property Value
Type | Description |
---|---|
IEnumerable<KeyValuePair<Guid, string>> |
HandlerName
The user friendly name for this type of query runner handler
Declaration
public string HandlerName { get; }
Property Value
Type | Description |
---|---|
string |
QueryRunnerHandlerTypeID
Indicates this works for the updating
Declaration
public Guid QueryRunnerHandlerTypeID { get; }
Property Value
Type | Description |
---|---|
Guid |
RequiresHandlerInstance
Requires a handler instance - custom
Declaration
public QueryRunnerHandlerInstanceType RequiresHandlerInstance { get; }
Property Value
Type | Description |
---|---|
QueryRunnerHandlerInstanceType |
SettingsType
Declaration
public Type SettingsType { get; }
Property Value
Type | Description |
---|---|
Type |
Methods
GetParameters(Guid?, UserInfo, IReadOnlyCache, IEntityUpdater)
Returns all the parameters for updating an item, every property on the entity
Declaration
public Task<IEnumerable<ISQLTypeWrapper>> GetParameters(Guid? forHandlerID, UserInfo user, IReadOnlyCache cache, IEntityUpdater updater)
Parameters
Type | Name | Description |
---|---|---|
Guid? | forHandlerID | The id of the instance, which should always be null for an entity update |
UserInfo | user | The logged in user this is running for |
IReadOnlyCache | cache | A local cache |
IEntityUpdater | updater |
Returns
Type | Description |
---|---|
Task<IEnumerable<ISQLTypeWrapper>> | All the parameters against a given IReport id |