Beispiel #1
0
        public static Task <int> CountAsync <T>(this IQueryable <T> source)
            where T : class
        {
            if (source is EntitySet <T> )
            {
                source = (source as EntitySet <T>).DbSet;
            }

            return(Extensions.CountAsync(source));
        }
Beispiel #2
0
 public void Load_throws_when_given_null_query()
 {
     Assert.Equal("source", Assert.Throws <ArgumentNullException>(() => QueryableExtensions.Load(null)).ParamName);
 }