public async Task <IEnumerable <T> > FilterAsync(Expression <Func <T, object> > byProperty, string hasValue) { var propertyName = QueryFuncExt.GetInfo(byProperty).ToCamelCase(); return(await _context.VAsync <T>(g => g.V().HasLabel(GraphContextBase._dataSetLabelMapping[typeof(T)]).Has(propertyName, hasValue)) .ConfigureAwait(false)); }
public async Task <IEnumerable <T> > FilterAsync(Expression <Func <T, object> > byProperty, string hasValue, int page, int pageSize = 20) { var propertyName = QueryFuncExt.GetInfo(byProperty).ToCamelCase(); return(await _context.VAsync <T>(g => g.V().HasLabel(GraphContextBase._dataSetLabelMapping[typeof(T)]).Has(propertyName, hasValue).Range(page *pageSize, (page * pageSize) + pageSize))); }