chore: initial commit
Signed-off-by: Alan Brault <alan.brault@visus.io>
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
//HintName: MapperSourceGen.SourceGenerator.Tests.MyEntityDto.g.cs
|
||||
// <auto-generated/>
|
||||
#pragma warning disable
|
||||
#nullable enable
|
||||
namespace MapperSourceGen.SourceGenerator.Tests
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
internal partial class MyEntityDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
//HintName: MapperSourceGen.SourceGenerator.Tests.MyEntityMapper.g.cs
|
||||
// <auto-generated/>
|
||||
#pragma warning disable
|
||||
#nullable enable
|
||||
namespace MapperSourceGen.SourceGenerator.Tests
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
internal partial class MyEntityMapper
|
||||
{
|
||||
public static MapperSourceGen.SourceGenerator.Tests.MyEntity ToModel(MapperSourceGen.SourceGenerator.Tests.MyEntityDto source)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(nameof(source));
|
||||
return new MapperSourceGen.SourceGenerator.Tests.MyEntity()
|
||||
{
|
||||
Id = source.Id,
|
||||
};
|
||||
}
|
||||
|
||||
public static MapperSourceGen.SourceGenerator.Tests.MyEntityDto ToDto(MapperSourceGen.SourceGenerator.Tests.MyEntity source)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(nameof(source));
|
||||
return new MapperSourceGen.SourceGenerator.Tests.MyEntityDto()
|
||||
{
|
||||
Id = source.Id,
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user