-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from polyadic/prepare-release
Update readme and changelog
- Loading branch information
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
# Changelog | ||
|
||
## 0.1.0 | ||
Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,25 @@ | ||
# Funcky.EntityFrameworkCore | ||
|
||
[![Build](https://github.com/polyadic/funcky-efcore/workflows/Build/badge.svg)](https://github.com/polyadic/funcky-efcore/actions?query=workflow%3ABuild) | ||
[![Nuget](https://img.shields.io/nuget/v/Funcky.EntityFrameworkCore)](https://www.nuget.org/packages/Funcky.EntityFrameworkCore/) | ||
[![Changelog: changelog.md](https://img.shields.io/badge/changelog-changelog.md-orange)](./changelog.md) | ||
[![Licence: MIT](https://img.shields.io/badge/licence-MIT-green)](https://raw.githubusercontent.com/polyadic/funcky-efcore/master/LICENSE-MIT) | ||
[![Licence: Apache](https://img.shields.io/badge/licence-Apache-green)](https://raw.githubusercontent.com/polyadic/funcky-efcore/master/LICENSE-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: | ||
```csharp | ||
using System; | ||
using Funcky.EntityFrameworkCore.Extensions; | ||
using Microsoft.EntityFrameworkCore; | ||
|
||
DbContext context; | ||
var firstPerson = await context.Set<Person>().FirstOrNoneAsync(); | ||
firstPerson.AndThen(p => Console.WriteLine($"Hello {p.FirstName}!")); | ||
``` | ||
|
||
[`EntityFrameworkQueryableExtensions`]: https://docs.microsoft.com/en-us/dotnet/api/microsoft.entityframeworkcore.entityframeworkqueryableextensions?view=efcore-5.0 |