Skip to content

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

About

Interoperability between Funcky and EF Core

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%