IDataApiCount Method |
Namespace: Casewhere.Runtime.DSL.Api
long Count( string dataClassName, DynamicFilter filter )
var dataApi = ctx.Use<IDataApi>(); var filter = FilterBuilder.Create() .Eq("DepartmentId", ctx.Input.Id) .Eq("Active", true) .Build(); var count = dataApi.Count("Employee", filter); Log.Info("There are {Count} Employees in the Department", count);