OfXe.EntityFrameworkCore
1.0.7
This is a very first package, it contains so many critical bugs and is unusable. Please help me to mark this as a Deprecating package!
dotnet add package OfXe.EntityFrameworkCore --version 1.0.7
NuGet\Install-Package OfXe.EntityFrameworkCore -Version 1.0.7
<PackageReference Include="OfXe.EntityFrameworkCore" Version="1.0.7" />
paket add OfXe.EntityFrameworkCore --version 1.0.7
#r "nuget: OfXe.EntityFrameworkCore, 1.0.7"
// Install OfXe.EntityFrameworkCore as a Cake Addin #addin nuget:?package=OfXe.EntityFrameworkCore&version=1.0.7 // Install OfXe.EntityFrameworkCore as a Cake Tool #tool nuget:?package=OfXe.EntityFrameworkCore&version=1.0.7
OfX
OfX is an open-source, which focus on Attribute-based Data Mapping, simplifying data handling across services and enhancing maintainability.
Project Highlights
Attribute-based Data Mapping in OfX is a feature that lets developers annotate properties in their data models with custom attributes. These attributes define how and from where data should be fetched, eliminating repetitive code and automating data retrieval. For example, imagine a scenario where Service A needs a user’s name stored in Service B. With Attribute-based Data Mapping, Service A can define a UserName property annotated with [UserAttribute(nameof(UserId))]. This tells the system to automatically retrieve the UserName based on UserId, without writing custom code each time.
Example:
public sealed class MemberResponse : ModelResponse
{
public string UserId { get; set; }
[UserOf(nameof(UserId), Expression = "Email")]
public string UserEmail { get; set; }
[UserOf(nameof(UserId))] public string UserName { get; set; }
public DateTime CreatedTime { get; set; }
public List<MemberMapRoleGroupResponse> MemberMapRoleGroups { get; set; }
public bool IsActivated { get; set; }
public bool IsRemoved { get; set; }
}
The [UserOfAttribute] annotation acts as a directive to automatically retrieve UserName based on UserId,you can also fetch custom fields as Email on the User Table using Expression like [UserOf(nameof(UserId), Expression="Email")]. This eliminates the need for manual mapping logic, freeing developers to focus on core functionality rather than data plumbing.
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. |
-
net8.0
- Microsoft.EntityFrameworkCore (>= 9.0.0)
- OfX (>= 1.0.6)
-
net9.0
- Microsoft.EntityFrameworkCore (>= 9.0.0)
- OfX (>= 1.0.6)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.