DKNet.EfCore.DtoGenerator
13.3.2
dotnet add package DKNet.EfCore.DtoGenerator --version 13.3.2
NuGet\Install-Package DKNet.EfCore.DtoGenerator -Version 13.3.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="DKNet.EfCore.DtoGenerator" Version="13.3.2"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DKNet.EfCore.DtoGenerator" Version="13.3.2" />
<PackageReference Include="DKNet.EfCore.DtoGenerator"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
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 DKNet.EfCore.DtoGenerator --version 13.3.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: DKNet.EfCore.DtoGenerator, 13.3.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 DKNet.EfCore.DtoGenerator@13.3.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=DKNet.EfCore.DtoGenerator&version=13.3.2
#tool nuget:?package=DKNet.EfCore.DtoGenerator&version=13.3.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
DKNet.EfCore.DtoGenerator
Generate DTO property declarations and validate event payloads at compile time for .NET developers.
✨ Why use it?
- Keep DTO property lists aligned with entities and inherited properties.
- Apply local and project-wide property selection without repeating lists on every DTO.
- Validate RaisesEvent declarations and generate convention-named payload records during compilation.
🚀 Quick Start
Use a .NET 10 console project. Install the packages, then replace Program.cs with the example.
dotnet new console -f net10.0 -n EfCoreDemo
cd EfCoreDemo
dotnet add package DKNet.EfCore.DtoGenerator
using DKNet.EfCore.DtoGenerator;
var dto = new ProductDto { Id = 1, Name = "Coffee", Price = 12m };
Console.WriteLine($"{dto.Name}: {dto.Price}"); // Coffee: 12
public sealed class Product
{
public int Id { get; set; }
public string Name { get; set; } = "";
public decimal Price { get; set; }
}
[GenerateDto(typeof(Product))]
public partial record ProductDto;
Run with dotnet run.
Documentation
| Guide | Read when |
|---|---|
| Package overview | Start with architecture and the end-to-end flow. |
| Generate DTO properties | Declare a partial DTO shell and extend its generated shape. |
| Choose DTO properties | Set Include, Exclude and navigation-property defaults. |
| Carry property attributes | Preserve validation and sensitive-data declarations. |
| Generate and validate event payloads | Use RaisesEvent conventions and read compiler diagnostics. |
There are no supported framework assets in this package.
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- No dependencies.
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 |
|---|---|---|
| 13.3.2 | 93 | 11/3/2026 |
| 13.3.1 | 105 | 10/26/2026 |
| 13.3.0 | 160 | 10/22/2026 |
| 13.2.8 | 91 | 10/22/2026 |
| 13.2.7 | 149 | 10/11/2026 |
| 13.2.6 | 97 | 10/10/2026 |
| 13.2.5 | 328 | 10/2/2026 |
| 13.2.4 | 105 | 10/1/2026 |
| 13.2.3 | 103 | 10/1/2026 |
| 13.2.2 | 108 | 10/1/2026 |
| 13.2.1 | 112 | 10/1/2026 |
| 13.2.0 | 111 | 10/1/2026 |
| 13.1.3 | 142 | 9/21/2026 |
| 13.1.2 | 370 | 9/18/2026 |
| 13.1.1 | 114 | 9/18/2026 |
| 13.1.0 | 99 | 9/18/2026 |
| 13.0.2 | 104 | 9/18/2026 |
| 13.0.1 | 116 | 9/18/2026 |
| 13.0.0 | 123 | 9/18/2026 |
| 12.0.0 | 115 | 9/17/2026 |
Loading failed