Skip to content

Interoperability between Funcky and EF Core

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-Apache
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

polyadic/funcky-efcore

Repository files navigation

Funcky.EntityFrameworkCore

Build Nuget Changelog: changelog.md Licence: MIT Licence: Apache

Features

Extension Methods for IQueryable<T>

This package provides the extension methods FirstOrNoneAsync, LastOrNoneAsync and SingleOrNoneAsync for EF Core's IQueryable<T> objects. These are analogous to the ones provided by EntityFrameworkQueryableExtensions.

Example:

using System;
using Funcky.Extensions;
using Microsoft.EntityFrameworkCore;

DbContext context;
var firstPerson = await context.Set<Person>().FirstOrNoneAsync();
firstPerson.AndThen(p => Console.WriteLine($"Hello {p.FirstName}!"));