17 lines
721 B
C#
17 lines
721 B
C#
using System.Diagnostics.CodeAnalysis;
|
|
using MoonlightServers.Api.Infrastructure.Database.Entities;
|
|
using MoonlightServers.Shared.Admin.Nodes;
|
|
using Riok.Mapperly.Abstractions;
|
|
|
|
namespace MoonlightServers.Api.Admin.Nodes;
|
|
|
|
[Mapper]
|
|
[SuppressMessage("Mapper", "RMG020:No members are mapped in an object mapping")]
|
|
[SuppressMessage("Mapper", "RMG012:No members are mapped in an object mapping")]
|
|
public static partial class NodeMapper
|
|
{
|
|
public static partial NodeDto ToDto(Node node);
|
|
public static partial IQueryable<NodeDto> ProjectToDto(this IQueryable<Node> nodes);
|
|
public static partial Node ToEntity(CreateNodeDto dto);
|
|
public static partial void Merge([MappingTarget] Node node, UpdateNodeDto dto);
|
|
} |