Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Add DefaultIfEmpty #82

Closed
frankiDotNet opened this issue May 18, 2017 · 2 comments
Closed

[Feature] Add DefaultIfEmpty #82

frankiDotNet opened this issue May 18, 2017 · 2 comments
Assignees
Labels

Comments

@frankiDotNet
Copy link

frankiDotNet commented May 18, 2017

Please add DefaultIfEmpty as Extension:

public static object DefaultIfEmpty(this IQueryable source)
{
    Check.NotNull(source, nameof(source));
        return source.Provider.Execute(
    Expression.Call(
        typeof(Queryable), "DefaultIfEmpty",
        new Type[] { source.ElementType },
        source.Expression));
}
@StefH StefH changed the title Add DefaultIfEmpty {Feature] Add DefaultIfEmpty May 19, 2017
@StefH StefH changed the title {Feature] Add DefaultIfEmpty [Feature] Add DefaultIfEmpty May 19, 2017
@StefH StefH self-assigned this May 19, 2017
@StefH StefH added the feature label May 19, 2017
StefH added a commit that referenced this issue May 19, 2017
@StefH
Copy link
Collaborator

StefH commented May 19, 2017

Fixed

@StefH StefH closed this as completed May 19, 2017
@frankiDotNet
Copy link
Author

100% fast and clean! THANKS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants