IDataApiSearch Method (DataObjectApiQuery) |
Namespace: Casewhere.Runtime.DSL.Api
DynamicQueryResult Search( DataObjectApiQuery query )
var dataApi = ctx.Use<IDataApi>(); var filter = FilterBuilder.Create().Eq("DepartmentId", ctx.Input.Id).Eq("Active", true).Build(); var result = dataApi.Search(DataObjectApiQuery .For("Employee") .FilterBy(filter)); Log.Info("Total: {TotalItems}", result.TotalItems); foreach(var emp in result.Data) Log.Info("{Employee}", emp);