Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 1.39 KB

readme.md

File metadata and controls

25 lines (20 loc) · 1.39 KB

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}!"));