AddXMapEndpoints 1.0.0
See the version list below for details.
dotnet add package AddXMapEndpoints --version 1.0.0
NuGet\Install-Package AddXMapEndpoints -Version 1.0.0
<PackageReference Include="AddXMapEndpoints" Version="1.0.0" />
paket add AddXMapEndpoints --version 1.0.0
#r "nuget: AddXMapEndpoints, 1.0.0"
// Install AddXMapEndpoints as a Cake Addin
#addin nuget:?package=AddXMapEndpoints&version=1.0.0
// Install AddXMapEndpoints as a Cake Tool
#tool nuget:?package=AddXMapEndpoints&version=1.0.0
- Use this extension (in a Blazor project NET 8.0) after APP building (in Program.cs):
// Using reference using static AddXMapEndpoints.WebApplicationXMapExtensions; ..... app.AddXMapEndpoints(); // It's a kind of magic... 😃 .....
- Mark your DTO with 'AddXMapEndpoints' attribute (parent entities are automatically loaded)
[AddXMapEndpoints.AddXMapEndpoints] // ⇒ Automatically add CRUD endpoints !
public class CatDto
{
.....
- Mark your DTO with 'AddXMapEndpoints' attribute setting 'includeChildren: true' if you want to load 1-to-many collections
[AddXMapEndpoints.AddXMapEndpoints(includeChildren: true)] // ⇒ Automatically add CRUD endpoints with children ! public class CatOwnerDto { ....
- Configure your AutoMapperProfile
public AutoMapperProfile() { CreateMap<CatDto, Cat>(); CreateMap<Cat, CatDto>() .ForMember(dest ⇒ dest.CatCategory, opt ⇒ opt.MapFrom(src ⇒ src!.IdCategoryNavigation!.CategoryName)) ; }
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. |
-
net8.0
- AutoMapper (>= 13.0.1)
- Microsoft.EntityFrameworkCore (>= 8.0.2)
- Newtonsoft.Json (>= 13.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.