chaowlert
chaowlert
When mapping to record, Mapster will map to constructor parameter. Your parameter name has `_` prefix. Either config naming convention or rename your parameter.
Oh, this could be bug
Cool thank you very much! Will add soon.
Too bad, it is because of `IEnumerable` behavior. Enumerable computed lazily outside service provider scope. You have 2 choices. 1. Using `List` 2. Move `dtos.Count()`, `dtos.Single()` inside service provider scope.
You are correct in your scenario that you might need materialized list for service injection. Let me explain `AvoidInlineMapping` & why it becomes `IEnumerable` instead of materialized list. Inline mapping...
Hi, I have the same problem. Currently I solved by following ``` gulp.task('remap-istanbul', function () { return gulp.src('coverage/coverage-final.json') .pipe(remapIstanbul()) .pipe(change(function (data) { var json = JSON.parse(data); var keys = Object.keys(json);...
Mapster doesn't map to getter only property by default. You can add following config to map to getter only property. ```csharp TypeAdapterConfig.GlobalSettings.Default .UseDestinationValue(member => member.SetterModifier == AccessModifier.None && member.Type.IsGenericType &&...