21.227. Class TaskDataMask

Namespace: ArmoniK.Core.Common.Storage
Assembly: ArmoniK.Core.Common.dll

Represents a projection from to with a mask that selects the taskDataFields to include in

public class TaskDataMask

21.227.1. Inheritance

objectTaskDataMask

21.227.2. Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

21.227.3. Constructors

21.227.3.1. TaskDataMask(ICollection<TaskDataFields>, ICollection<TaskOptionsFields>)

Creates an instance of class that holds a projection from to with the mask built from the given list of taskDataFields

public TaskDataMask(ICollection<TaskDataFields> taskDataFields, ICollection<TaskOptionsFields> taskOptionsFields)

21.227.3.1.1. Parameters

taskDataFields ICollection<TaskDataFields>

Fields from to include in the mask

taskOptionsFields ICollection<TaskOptionsFields>

Fields from to include in the mask

21.227.4. Methods

21.227.4.1. FieldsToTaskData(TaskDataFields)

Conversion function from to to select the appropriate member from

public static Expression<Func<TaskData, object?>> FieldsToTaskData(TaskDataFields field)

21.227.4.1.1. Parameters

field TaskDataFields

Field representing the member

21.227.4.1.2. Returns

Expression<Func<TaskData, object?>>

to select the member

21.227.4.1.3. Exceptions

ArgumentOutOfRangeException

when field is not recognized

21.227.4.2. FieldsToTaskDataHolder(TaskDataFields)

Conversion function from to to select the appropriate member from

public static Expression<Func<TaskDataHolder, object?>> FieldsToTaskDataHolder(TaskDataFields field)

21.227.4.2.1. Parameters

field TaskDataFields

Field representing the member

21.227.4.2.2. Returns

Expression<Func<TaskDataHolder, object?>>

to select the member

21.227.4.2.3. Exceptions

ArgumentOutOfRangeException

when field is not recognized

21.227.4.3. FieldsToTaskOptions(TaskOptionsFields)

Conversion function from to to select the appropriate member from

public static Expression<Func<TaskData, object?>> FieldsToTaskOptions(TaskOptionsFields field)

21.227.4.3.1. Parameters

field TaskOptionsFields

Field representing the member

21.227.4.3.2. Returns

Expression<Func<TaskData, object?>>

to select the member

21.227.4.3.3. Exceptions

ArgumentOutOfRangeException

when field is not recognized

21.227.4.4. FieldsToTaskOptionsHolder(TaskOptionsFields)

Conversion function from to to select the appropriate member from

public static Expression<Func<TaskOptionsHolder, object?>> FieldsToTaskOptionsHolder(TaskOptionsFields field)

21.227.4.4.1. Parameters

field TaskOptionsFields

Field representing the member

21.227.4.4.2. Returns

Expression<Func<TaskOptionsHolder, object?>>

to select the member

21.227.4.4.3. Exceptions

ArgumentOutOfRangeException

when field is not recognized

21.227.4.5. GetProjection()

Get the projection built from the mask given at class instantiation

public Expression<Func<TaskData, TaskDataHolder>> GetProjection()

21.227.4.5.1. Returns

Expression<Func<TaskData, TaskDataHolder>>

The representing the projection from to