Skip to content

Commit

Permalink
partial fix issue MapsterMapper#537
Browse files Browse the repository at this point in the history
not fix
- collection issue MapsterMapper#430 MapsterMapper#546
- object to ToDistination MapsterMapper#524
  • Loading branch information
DocSvartz authored and DocSvartz committed Sep 24, 2023
1 parent 04ac871 commit db8aa28
Show file tree
Hide file tree
Showing 5 changed files with 488 additions and 20 deletions.
3 changes: 2 additions & 1 deletion src/Mapster.Tests/WhenIgnoringConditionally.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ public void IgnoreIf_Can_Be_Combined()
public void IgnoreIf_Apply_To_RecordType()
{
TypeAdapterConfig<SimplePoco, SimpleRecord>.NewConfig()
.EnableNonPublicMembers(true) // add or
.IgnoreIf((src, dest) => src.Name == "TestName", dest => dest.Name)
.Compile();

Expand Down Expand Up @@ -187,7 +188,7 @@ public class SimpleDto
public string Name { get; set; }
}

public class SimpleRecord
public class SimpleRecord // or Replace on record
{
public int Id { get; }
public string Name { get; }
Expand Down
Loading

0 comments on commit db8aa28

Please sign in to comment.