修复 IEnumerable.GetEnumerator 没有实现的问题

This commit is contained in:
Wzy 2021-12-01 23:40:58 +08:00
parent e6f05aa24e
commit f387c3847e

View File

@ -40,7 +40,10 @@ namespace FreeSql.Extensions.Linq
yield return item; yield return item;
} }
} }
IEnumerator IEnumerable.GetEnumerator() => throw new NotImplementedException(); IEnumerator IEnumerable.GetEnumerator()
{
return (IEnumerator)GetEnumerator();
}
public Type ElementType => typeof(QueryableProvider<TCurrent, TSource>); public Type ElementType => typeof(QueryableProvider<TCurrent, TSource>);
public Expression Expression => _expression; public Expression Expression => _expression;