Example #1
0
        public static IEnumerable<ParameterBase> ToParameters(this RunObjectLinkLine runObjectLinkLine)
        {
            yield return new SimpleParameter("FieldName", runObjectLinkLine.FieldName);
            yield return new SimpleParameter("Type", runObjectLinkLine.Type);
            yield return new SimpleParameter("Value", runObjectLinkLine.Value);

            yield return new SwitchParameter("ValueIsFilter", runObjectLinkLine.ValueIsFilter);
            yield return new SwitchParameter("OnlyMaxLimit", runObjectLinkLine.OnlyMaxLimit);
        }
Example #2
0
 public static Invocation ToInvocation(this RunObjectLinkLine runObjectLinkLine) => new Invocation("New-CBreezeRunObjectLink", runObjectLinkLine.ToParameters());