Fireflies.GraphQL.Extensions.EntityFrameworkCore
1.18.2
dotnet add package Fireflies.GraphQL.Extensions.EntityFrameworkCore --version 1.18.2
NuGet\Install-Package Fireflies.GraphQL.Extensions.EntityFrameworkCore -Version 1.18.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Fireflies.GraphQL.Extensions.EntityFrameworkCore" Version="1.18.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Fireflies.GraphQL.Extensions.EntityFrameworkCore" Version="1.18.2" />
<PackageReference Include="Fireflies.GraphQL.Extensions.EntityFrameworkCore" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Fireflies.GraphQL.Extensions.EntityFrameworkCore --version 1.18.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Fireflies.GraphQL.Extensions.EntityFrameworkCore, 1.18.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Fireflies.GraphQL.Extensions.EntityFrameworkCore@1.18.2
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Fireflies.GraphQL.Extensions.EntityFrameworkCore&version=1.18.2
#tool nuget:?package=Fireflies.GraphQL.Extensions.EntityFrameworkCore&version=1.18.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Fireflies GraphQL Entity Framework Core extension
Example
Add the following code to your WebApplication pipeline.
var entityFrameworkOptions = graphQLOptions.UseEntityFramework();
entityFrameworkOptions.Register<BloggingContext>();
Operation definition
[GraphQLSort]
[GraphQLQuery]
public IQueryable<Blog> Blogs([Resolved] BloggingContext db) {
return db.Blogs;
}
Model
using Microsoft.EntityFrameworkCore;
public class BloggingContext : DbContext {
public DbSet<Blog> Blogs { get; set; }
public DbSet<Post> Posts { get; set; }
public string DbPath { get; }
public BloggingContext() {
var folder = Environment.SpecialFolder.LocalApplicationData;
var path = Environment.GetFolderPath(folder);
DbPath = System.IO.Path.Join(path, "blogging.db");
}
protected override void OnConfiguring(DbContextOptionsBuilder options) {
options.UseSqlite($"Data Source={DbPath}");
}
}
public class Blog {
public int BlogId { get; set; }
public string Url { get; set; }
public List<Post> Posts { get; }
}
public class Post {
public int PostId { get; set; }
public string Title { get; set; }
public string Content { get; set; }
public int BlogId { get; set; }
}
Logo by freepik
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Fireflies.GraphQL.Core (>= 1.18.2)
- Microsoft.EntityFrameworkCore (>= 8.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
1.18.2 | 125 | 1/28/2025 |
1.18.1 | 129 | 11/14/2024 |
1.18.0 | 160 | 2/14/2024 |
1.17.0 | 275 | 11/15/2023 |
1.16.1 | 182 | 10/9/2023 |
1.16.0 | 181 | 9/4/2023 |
1.15.2 | 200 | 8/23/2023 |
1.15.1 | 174 | 8/22/2023 |
1.15.0 | 178 | 8/22/2023 |
1.14.22 | 202 | 7/14/2023 |
1.14.21 | 206 | 7/14/2023 |
1.14.20 | 199 | 7/13/2023 |
1.14.19 | 214 | 7/13/2023 |
1.14.18 | 217 | 7/12/2023 |
1.14.17 | 200 | 7/12/2023 |
1.14.16 | 204 | 7/11/2023 |
1.14.15 | 203 | 7/10/2023 |
1.4.14 | 221 | 7/4/2023 |
1.4.13 | 229 | 6/28/2023 |
1.4.10 | 234 | 6/28/2023 |
1.4.9 | 219 | 6/19/2023 |
1.4.8 | 236 | 6/16/2023 |
1.4.7 | 224 | 6/16/2023 |
1.4.6 | 225 | 6/15/2023 |
1.4.5 | 224 | 6/15/2023 |
1.4.4 | 222 | 6/14/2023 |
1.4.3 | 224 | 6/14/2023 |
1.4.2 | 234 | 6/13/2023 |
1.4.1 | 242 | 6/11/2023 |
1.4.0 | 239 | 6/10/2023 |
1.3.2 | 240 | 6/8/2023 |
1.3.1 | 228 | 6/8/2023 |
1.3.0 | 227 | 6/7/2023 |
1.2.4 | 223 | 5/23/2023 |
1.2.3 | 209 | 5/23/2023 |
1.2.2 | 227 | 5/12/2023 |
1.2.1 | 216 | 5/12/2023 |
1.2.0 | 230 | 5/12/2023 |
1.1.0 | 260 | 4/18/2023 |
1.0.0 | 291 | 3/29/2023 |