IDslCompilerContextParameters Property |
var dataApi = ctx.Use<IDataApi>(); var @from = ctx.Parameters.Get<DateTime>("from"); var isActive = ctx.Parameters["isActive"]; var filter = FilterBuilder.Create().Eq("Active", isActive) .Gt("CreatedAt", @from) .Build(); var result = dataApi.Search(DataObjectApiQuery .For("Employee") .FilterBy(filter)); var employee = result.Data.FirstOrDefault(); ctx.Output = employee;
Namespace: Casewhere.Runtime.DSL.CompilerContext