OfX-EFCore
4.1.1
See the version list below for details.
dotnet add package OfX-EFCore --version 4.1.1
NuGet\Install-Package OfX-EFCore -Version 4.1.1
<PackageReference Include="OfX-EFCore" Version="4.1.1" />
<PackageVersion Include="OfX-EFCore" Version="4.1.1" />
<PackageReference Include="OfX-EFCore" />
paket add OfX-EFCore --version 4.1.1
#r "nuget: OfX-EFCore, 4.1.1"
#addin nuget:?package=OfX-EFCore&version=4.1.1
#tool nuget:?package=OfX-EFCore&version=4.1.1
OfX-EFCore
OfX-EFCore is an extension package for OfX that integrates with Entity Framework Core to simplify data fetching by leveraging attribute-based data mapping. This extension streamlines data retrieval using EF Core, reducing boilerplate code and improving maintainability.
Introduction
OfX-EFCore extends the core OfX library by providing seamless integration with Entity Framework Core. This enables developers to automatically map and retrieve data directly from a database, leveraging the power of Entity Framework Core along with attribute-based data mapping.
For example, suppose you have a UserId
property in your model, and you want to fetch the corresponding Name
and Email
fields from the database. By using OfX-EFCore, you can annotate your model with attributes, and the library
will handle data fetching for you.
Installation
To install the OfX-EFCore package, use the following NuGet command:
dotnet add package OfX-EFCore
Or via the NuGet Package Manager:
Install-Package OfX-EFCore
How to Use
1. Register OfX-EfCore
Add OfX-EfCore to your service configuration during application startup:
builder.Services.AddOfXEntityFrameworkCore(cfg =>
{
cfg.AddAttributesContainNamespaces(typeof(WhereTheAttributeDefined).Assembly);
cfg.AddHandlersFromNamespaceContaining<SomeHandlerAssemblyMarker>();
})
.AddOfXEFCore(options =>
{
options.AddDbContexts(typeof(TestDbContext));
options.AddModelConfigurationsFromNamespaceContaining<SomeModelAssemblyMarker>();
});
Function Descriptions
AddDbContexts
Here, you can use the method AddDbContexts()
, which takes DbContext(s)
to executing.
AddModelConfigurationsFromNamespaceContaining
You have to tell OfX-EFCore where your models are located by assembly. OfX-EFCore will find all OfXConfigForAttribute
to create handler automatically!
That all, Enjoy your moment!
Package Name | Description | .NET Version | Document |
---|---|---|---|
Core | |||
OfX | OfX core | 8.0, 9.0 | ReadMe |
Data Providers | |||
OfX-EFCore | This is the OfX extension package using EntityFramework to fetch data | 8.0, 9.0 | This Document |
Transports | |||
OfX-gRPC | OfX.gRPC is an extension package for OfX that leverages gRPC for efficient data transportation. | 8.0, 9.0 | ReadMe |
OfX-Kafka | OfX-Kafka is an extension package for OfX that leverages Kafka for efficient data transportation. | 8.0, 9.0 | ReadMe |
OfX-Nats | OfX-Nats is an extension package for OfX that leverages Nats for efficient data transportation. | 8.0, 9.0 | ReadMe |
OfX-RabbitMq | OfX-RabbitMq is an extension package for OfX that leverages RabbitMq for efficient data transportation. | 8.0, 9.0 | ReadMe |
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 is compatible. 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. |
-
net8.0
- Microsoft.EntityFrameworkCore (>= 8.0.0)
- OfX (>= 4.1.1)
-
net9.0
- Microsoft.EntityFrameworkCore (>= 8.0.0)
- OfX (>= 4.1.1)
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 |
---|---|---|
7.0.2 | 113 | 6/19/2025 |
7.0.1 | 107 | 6/19/2025 |
7.0.0 | 215 | 6/9/2025 |
6.0.2 | 189 | 5/26/2025 |
6.0.1 | 139 | 5/25/2025 |
6.0.0 | 139 | 5/20/2025 |
6.0.0-beta1 | 131 | 5/20/2025 |
5.0.22 | 165 | 5/5/2025 |
5.0.21 | 989 | 4/26/2025 |
5.0.20 | 79 | 4/26/2025 |
5.0.19 | 388 | 4/22/2025 |
5.0.18 | 228 | 4/13/2025 |
5.0.17 | 438 | 3/23/2025 |
5.0.16 | 758 | 3/18/2025 |
5.0.15 | 147 | 3/17/2025 |
5.0.14 | 429 | 3/9/2025 |
5.0.13 | 350 | 3/6/2025 |
5.0.12 | 274 | 3/6/2025 |
5.0.11 | 317 | 3/2/2025 |
5.0.10 | 163 | 2/28/2025 |
5.0.9 | 119 | 2/28/2025 |
5.0.8 | 125 | 2/28/2025 |
5.0.7 | 98 | 2/27/2025 |
5.0.6 | 95 | 2/26/2025 |
5.0.5 | 93 | 2/24/2025 |
5.0.4 | 120 | 2/21/2025 |
5.0.3 | 91 | 2/21/2025 |
5.0.2 | 116 | 2/19/2025 |
5.0.1 | 90 | 2/18/2025 |
5.0.0 | 94 | 2/17/2025 |
4.1.3 | 104 | 2/11/2025 |
4.1.2 | 98 | 2/11/2025 |
4.1.1 | 109 | 2/9/2025 |
4.1.0 | 104 | 2/8/2025 |
4.0.1 | 104 | 2/6/2025 |
4.0.0 | 102 | 2/4/2025 |
3.3.3 | 113 | 2/4/2025 |
3.3.2 | 101 | 2/3/2025 |
3.3.1 | 97 | 2/1/2025 |
3.3.0 | 97 | 1/22/2025 |
3.2.1 | 98 | 1/22/2025 |
3.2.0 | 104 | 1/21/2025 |
3.1.13 | 95 | 1/18/2025 |
3.1.12 | 83 | 1/16/2025 |
3.1.11 | 91 | 1/13/2025 |
3.1.10 | 103 | 1/12/2025 |
3.1.9 | 100 | 1/10/2025 |
3.1.8 | 89 | 1/8/2025 |
3.1.7 | 96 | 1/7/2025 |
3.1.6 | 97 | 1/6/2025 |
3.1.5 | 102 | 1/5/2025 |
3.1.4 | 119 | 1/4/2025 |
3.1.3 | 128 | 1/4/2025 |
3.1.2 | 132 | 1/4/2025 |
3.1.1 | 130 | 1/3/2025 |
3.1.0 | 90 | 12/31/2024 |
3.0.5 | 98 | 12/30/2024 |
3.0.4 | 88 | 12/30/2024 |
3.0.3 | 92 | 12/30/2024 |
3.0.2 | 111 | 12/30/2024 |
3.0.1 | 95 | 12/30/2024 |
3.0.0 | 100 | 12/30/2024 |
2.0.4 | 94 | 12/30/2024 |
2.0.3 | 90 | 12/30/2024 |
2.0.2 | 103 | 12/29/2024 |
2.0.1 | 107 | 12/29/2024 |
2.0.0 | 106 | 12/28/2024 |
1.1.4 | 106 | 12/27/2024 |
1.1.3 | 94 | 12/26/2024 |
1.1.2 | 96 | 12/26/2024 |
1.1.1 | 92 | 12/26/2024 |
1.1.0 | 105 | 12/25/2024 |
1.0.8 | 104 | 12/25/2024 |
1.0.7 | 104 | 12/25/2024 |
1.0.6 | 96 | 12/25/2024 |