Skip to content

Commit fa65c71

Browse files
committed
fix: MapToConstructor for RecordType
1 parent acaebe2 commit fa65c71

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Mapster/Adapters/RecordTypeAdapter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ protected override Expression CreateInstantiationExpression(Expression source, E
4040
SkipIgnoreNullValuesMemberMap.Clear();
4141
Expression installExpr;
4242

43-
if (arg.GetConstructUsing() != null || arg.DestinationType == null)
43+
if (arg.GetConstructUsing() != null || arg.Settings.MapToConstructor != null || arg.DestinationType == null)
4444
installExpr = base.CreateInstantiationExpression(source, destination, arg);
4545
else
4646
{

0 commit comments

Comments
 (0)