Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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