Ejemplo n.º 1
0
        public static long Count <TEntity>(this IQueryOptions <TEntity> queryOptions)
            where TEntity : DatastoreEntity
        {
            var kind = queryOptions.GetKind();

            return(kind.Count(queryOptions));
        }
Ejemplo n.º 2
0
        public static Task <IEnumerable <TEntity> > FindAsync <TEntity>(this IQueryOptions <TEntity> queryOptions)
            where TEntity : DatastoreEntity
        {
            var kind = queryOptions.GetKind();

            return(kind.FindAsync(queryOptions));
        }
Ejemplo n.º 3
0
        public static Task <long> CountAsync <TEntity>(this IQueryOptions <TEntity> queryOptions)
            where TEntity : DatastoreEntity
        {
            var kind = queryOptions.GetKind();

            return(kind.CountAsync(queryOptions));
        }