public static Task <T[]> ToArrayAsync <T>(this IQueryable <T> source)
            where T : class
        {
            if (source is EntitySet <T> )
            {
                source = (source as EntitySet <T>).DbSet;
            }

            return(CoreExtensions.ToArrayAsync(source));
        }
Exemple #2
0
 public static Task <T[]> ToArrayAsync <T>(this IQueryable <T> source)
 {
     //if (IsInUnitTest)
     //    return Task.FromResult(source.ToArray());
     return(QE.ToArrayAsync(source));
 }