DtoKit Code
Brought to you by:
leksiq
File | Date | Author | Commit |
---|---|---|---|
DtoBuilder | 2022-06-10 |
![]() |
[93754d] Nullable check improved, v1.1.1 |
DtoCore | 2022-06-10 |
![]() |
[93754d] Nullable check improved, v1.1.1 |
DtoJsonConverter | 2022-06-10 |
![]() |
[93754d] Nullable check improved, v1.1.1 |
DtoKit | 2022-06-10 |
![]() |
[93754d] Nullable check improved, v1.1.1 |
htdocs | 2022-05-23 |
![]() |
[9f5c20] Updates |
.gitattributes | 2022-05-30 |
![]() |
[657984] Updates |
.gitignore | 2022-03-29 |
![]() |
[bd033f] initial commit |
DtoKitDebug.sln | 2022-04-27 |
![]() |
[65b8d2] Updates |
DtoKitRelease.sln | 2022-04-26 |
![]() |
[ace4f7] Updates Demo |
LICENSE | 2022-05-17 |
![]() |
[b803ed] Updates |
readme.md | 2022-05-23 |
![]() |
[9f5c20] Updates |
A library for processing of an object as DTO in accordance with the applied interface.
Supports partial building and JSON serialization/deserialization.
var builder = WebApplication.CreateBuilder(args);
...
// For interfaces being used as Dto
builder.Services.AddDtoKit(
provider =>
{
provider.AddTransient<ILine, Line>();
provider.AddTransient<IPort, Port>();
provider.AddTransient<IVessel, Vessel>();
provider.AddTransient<IRoute, Route>();
provider.AddTransient<IShipCall, ShipCall>();
provider.AddTransient<IVesselForShipCallList, Vessel>();
provider.AddTransient<IRouteForShipCallList, Route>();
provider.AddTransient<IShipCallForList, ShipCall>();
provider.AddTransient<IShipCallAdditionInfo, ShipCall>();
}
);
...
var app = builder.Build();
See Documentation