Skip to content

Instantly share code, notes, and snippets.

@BrianMRO
Last active March 3, 2022 15:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BrianMRO/dbecdc5d8daae9a2b63ed637e982e871 to your computer and use it in GitHub Desktop.
Save BrianMRO/dbecdc5d8daae9a2b63ed637e982e871 to your computer and use it in GitHub Desktop.
Workflow - Define Conditions
#region Conditions
Condition Bql<T>() where T : IBqlUnary, new() => context.Conditions.FromBql<T>();
var conditions = new
{
IsOnHold
= Bql<hold.IsEqual<True>>(),
IsScheduled
= Bql<scheduleDate.IsNotNull>(),
}.AutoNameConditions();
#endregion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment