Table of Contents

Class ConditionOptions<T>

Namespace
BpNexT.NET.GraphQL.Models
Assembly
BpNexT.NET.GraphQL.dll

Advanced conditional controls for save options.

public class ConditionOptions<T> where T : IDataSetEntity

Type Parameters

T
Inheritance
object
ConditionOptions<T>

Methods

If(bool, Action<ConditionOptions<T>>)

public ConditionOptions<T> If(bool condition, Action<ConditionOptions<T>> thenBranch)

Parameters

condition bool
thenBranch Action<ConditionOptions<T>>

Returns

ConditionOptions<T>

If(Expression<Func<T, bool>>, Action<ConditionOptions<T>>)

public ConditionOptions<T> If(Expression<Func<T, bool>> predicate, Action<ConditionOptions<T>> thenBranch)

Parameters

predicate Expression<Func<T, bool>>
thenBranch Action<ConditionOptions<T>>

Returns

ConditionOptions<T>

IfThenElse(bool, Action<ConditionOptions<T>>, Action<ConditionOptions<T>>)

public ConditionOptions<T> IfThenElse(bool condition, Action<ConditionOptions<T>> thenBranch, Action<ConditionOptions<T>> elseBranch)

Parameters

condition bool
thenBranch Action<ConditionOptions<T>>
elseBranch Action<ConditionOptions<T>>

Returns

ConditionOptions<T>

IfThenElse(Expression<Func<T, bool>>, Action<ConditionOptions<T>>, Action<ConditionOptions<T>>)

public ConditionOptions<T> IfThenElse(Expression<Func<T, bool>> predicate, Action<ConditionOptions<T>> thenBranch, Action<ConditionOptions<T>> elseBranch)

Parameters

predicate Expression<Func<T, bool>>
thenBranch Action<ConditionOptions<T>>
elseBranch Action<ConditionOptions<T>>

Returns

ConditionOptions<T>

Raise(string)

public ConditionOptions<T> Raise(string message)

Parameters

message string

Returns

ConditionOptions<T>