0

Stack overflow exception with Mapster cause running process to terminate.

TSource.Adapt<TDestination>()
e03050
  • 1,392
  • 15
  • 12

1 Answers1

3

You can find more about preventing circular reference from doc. Use following for preventing stack overflow error.

TypeAdapterConfig<TSource, TDestination>
    .NewConfig()
    .PreserveReference(true);
e03050
  • 1,392
  • 15
  • 12