Skip to content

Commit 5c89a25

Browse files
DocSvartzDocSvartz
authored andcommitted
fix
1 parent a9b8bc2 commit 5c89a25

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

src/Mapster.Core/Utils/ProjectToTypeVisitors.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public override Expression Visit(Expression node)
2626
}
2727
}
2828

29-
public sealed class QuoteVisiter : ExpressionVisitor
29+
public sealed class QuoteVisitor : ExpressionVisitor
3030
{
3131
public List<UnaryExpression> Quotes { get; private set; } = new();
3232

src/Mapster.EFCore.Tests/Mapster.EFCore.Tests.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
<ItemGroup>
1010
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="9.0.0" />
11-
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="9.0.0" />
1211
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
1312
<PackageReference Include="MSTest.TestAdapter" Version="3.7.0" />
1413
<PackageReference Include="MSTest.TestFramework" Version="3.7.0" />

src/Mapster.EFCore/EFCoreExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public override Expression Visit(Expression node)
7474
{
7575
if (IsInclude(node))
7676
{
77-
var QuoteVisiter = new QuoteVisiter();
77+
var QuoteVisiter = new QuoteVisitor();
7878
QuoteVisiter.Visit(node);
7979

8080
foreach (var item in QuoteVisiter.Quotes)

src/Mapster/Adapters/DictionaryAdapter.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ protected override Expression CreateBlockExpression(Expression source, Expressio
8888
var key = Expression.Variable(keyType, "key");
8989
var keyAssign = Expression.Assign(key, Expression.Property(kvp, "MemeberName"));
9090

91-
//dest[kvp.MemeberName] = convert(kvp.Value);
91+
//dest[kvp.Key] = convert(kvp.Value);
9292
var set = CreateSetFromKvp(kvp, key, dict, arg);
9393
if (arg.Settings.NameMatchingStrategy.SourceMemberNameConverter != MapsterHelper.Identity)
9494
{
@@ -140,7 +140,7 @@ protected override Expression CreateBlockExpression(Expression source, Expressio
140140
}
141141

142142
//if (kvp.Value != null)
143-
// dest[kvp.MemeberName] = convert(kvp.Value);
143+
// dest[kvp.Key] = convert(kvp.Value);
144144
var kvpValueType = kvpType.GetGenericArguments()[1];
145145
if (arg.Settings.IgnoreNullValues == true && kvpValueType.CanBeNull())
146146
{
@@ -152,7 +152,7 @@ protected override Expression CreateBlockExpression(Expression source, Expressio
152152
}
153153

154154
//foreach (var kvp in source) {
155-
// dest[kvp.MemeberName] = convert(kvp.Value);
155+
// dest[kvp.Key] = convert(kvp.Value);
156156
//}
157157
set = Expression.Block(new[] { key }, keyAssign, set);
158158
var loop = ExpressionEx.ForEach(source, kvp, set);

0 commit comments

Comments
 (0)