Skip to content

Commit a69da93

Browse files
committed
Migrate solution to .slnx, update type checks and rename file
1 parent da73c46 commit a69da93

File tree

5 files changed

+15
-40
lines changed

5 files changed

+15
-40
lines changed

EntityChange.sln

Lines changed: 0 additions & 38 deletions
This file was deleted.

EntityChange.slnx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<Solution>
2+
<Folder Name="/Build/">
3+
<File Path=".github/dependabot.yml" />
4+
<File Path=".github/workflows/dotnet.yml" />
5+
<File Path="README.md" />
6+
<File Path="src/Directory.Build.props" />
7+
</Folder>
8+
<Project Path="src/EntityChange/EntityChange.csproj" />
9+
<Project Path="test/EntityChange.Tests/EntityChange.Tests.csproj" />
10+
</Solution>
File renamed without changes.

src/EntityChange/Fluent/MemberMappingBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public MemberMappingBuilder<TEntity, TProperty> Formatter(Func<TProperty?, strin
7171
if (formatterFactory == null)
7272
MemberMapping.Formatter = null;
7373
else
74-
MemberMapping.Formatter = v => formatterFactory(v is not null ? (TProperty)v : default);
74+
MemberMapping.Formatter = v => formatterFactory(v is TProperty property ? property : default);
7575

7676
return this;
7777
}

src/EntityChange/PathStack.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,11 @@ public string CurrentName()
7070

7171
// add indexers till property is reached
7272
var paths = new List<PathValue>();
73-
foreach (var path in _pathStack)
73+
var pathList = _pathStack.ToList();
74+
75+
for (int i = 0; i < pathList.Count; i++)
7476
{
77+
var path = pathList[i];
7578
paths.Add(path);
7679
if (path.Indexer != true)
7780
break;

0 commit comments

Comments
 (0)